CSS comments cause strange effects
Can anyone explain why using comments like this in css causes really strange effects SOMETIMES?
This works great
/* ------------------------------ */
/* some text here */
/* ------------------------------ */
Everything seems to work fine until I reload the page and then the page gets messed up in firefox and chrome if I use comments like this in css
<!-- sometext here -->
+2
JasonDavis
source
to share
2 answers
For CSS files.
<!-- -->
Not comment syntax.
+10
Γlafur Waage
source
to share
Why are you using XML comment blocks in CSS? Your first form ( /* comment */
) is the only one supported in CSS.
+3
Michael petrotta
source
to share