You are here: Re: Background in css gives warning « HTML « IT news, forums, messages
Re: Background in css gives warning

Posted by Ed Mullen on 02/24/06 04:15

Adario wrote:
> When I use the following:
>
> body {background: #d4ecfb;}
>
> The validator says:
>
> Warnings
> URI : file://localhost/main.css
>
> * Line : 1 (Level : 1) You have no color with your background-color :
> body
>
> It works but gives the warning. Any ideas?

It is not invalid, it's just a warning. The point is that a user's
settings may specify either or both of background color and text color.
If you specify, for instance, only a bg color of black and the user
has an over-ride setting text color to black ... well. So the validator
is telling you of a potential usability problem, not invalid code.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net

 

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

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