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
[Back to original message]
|