You are here: Re: Uncomprehensible css validation warnings « HTML « IT news, forums, messages
Re: Uncomprehensible css validation warnings

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация