|
Posted by Andy Dingley on 09/22/06 10:01
Hendrik Maryns wrote:
> The validation of my style sheet can be found here:
http://jigsaw.w3.org/css-validator/validator?uri=tcl.sfs.uni-tuebingen.de%2F%7Ehendrik%2Fstyle%2Fstyle.css
> I do not understand the warning: you will see that I did give a color
> for background in div.contentsBox (taken over from Wikipedia, btw).
* You have no color with your background-color : div.contentsBox
* div.contentsBox {
[...]
o background-color : #f9f9f9;
}
You nave no _color_ (foreground color) with your background color.
What would happen if the user already had a default color of #f9f9f9 ?
-- your new background would make the text disappear against it.
In general, always set both colours together, using readable
combinations.
The W3C validator is a bit obsessed with this warning, which can be
safely ignored so long as you are setting both colours somewhere
reliable, then just changing one for small "highlights" within this.
Navigation:
[Reply to this message]
|