Click to See Complete Forum and Search --> : underscores in css
boojum
07-08-2003, 05:28 PM
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, http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier says underscores are legal. are they?
Jonathan
07-08-2003, 08:54 PM
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...
Robert Wellock
07-10-2003, 07:33 AM
The vaildator does have a few errors but the following would be correct: .web-master{ background-color: red; }