0
If /* */ then //?
If /* and */ are used as comment in CSS, does // can be used too?
11 Réponses
+ 5
Can. but you must use outside property : ;
+ 6
People really disliked my "no"? We are talking about plain css and not sass, and in plain css there is no "//".
" Double slash (//...) comments are not supported by CSS (afaik, they're ignored but for a different reason than being a comment)."
+ 5
But you shouldn't if you are not working with sass !
+ 5
@Douglas. It would also ignore lines with "+-" or "€/". But that doesn't make it a comment! The proper way is to use /**/ and not //.
+ 5
@Very hard. No offense fam. But just wanna make sure that they know that only because it works they shouldn't use it.
+ 5
@Tim G.
Yep They shouldn't use it in css
Sometimes // can cause some error
+ 4
No
+ 4
But I can....
+ 4
@Tim G.
Yeah.....absolutely right. use /**/ is better
0
Woah! It really works. Thanks.
0
Same here, I could comment lines with it.