underscores in css

liunx

Guest
Whenever i validate a css file at the w3c, i get an error for each class/id that has an underscore in it. As far as i can tell, <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">http://www.w3.org/TR/CSS21/syndata.html ... identifier</a><!-- m --> says underscores are legal. are they?Just don't use the underscores, just join the words... for example...

your_word = YourWord

you can understand it, that is all that counts, just remember that css is case-sensitive...The vaildator does have a few errors but the following would be correct: .web-master{ background-color: red; }
 
Back
Top