CSS Validation
Posted May 11th, 2003 @ 02:27pm by Erik J. Barzeski
The CSS on my site now validates 100%. It did before but it was always throwing warnings:
You have no background-color with your color
Reason? From the CSS Validator FAQ:
If you don't specify
color
andbackground-color
at the same level of specifity, your style sheet might clash with user style sheets. To avoid this, specify always both of them, see Section 9.1 "Color Contrast" in the W3C Note "CSS Techniques for Web Content Accessibility Guidelines 1.0" or the article CSS Color Issues by the CSS Pointers Group for a discussion.
FWIW, I currently use background
instead of background-color
. As I understand it, it's six of one, half dozen of the other.
P.S. Would it be mean of me to point out that they've misspelled "specificity" as "specifity" (the #link gets it right, though)?