Matthew Ohlman wrote:

(http://www.htmlhelp.com/tools/csscheck/)

I validated my css, and it gave me this warning:*|
|**
*
body {
 margin: 0;
 padding: 0;
 font-size: 100%;
 background-color: #4A4A4A;
}

Warning: To help avoid conflicts with user style sheets, background-image should be specified whenever background-color is used. In most cases, background-image: none is suitable.
---

I have never heard that you should specify none for a background image if there is not one & there is a color specified. Is that true? I know that the specs say that you should specify a background color if there is an image used in case the image cannot be found. But not the other way around?


Matthew,

I wouldn't worry about this warning. If someone is savvy enough to change the background color on all pages to something they are more comfortable with, it behooves them to change the foreground color too, in order to ensure that it contrasts with their background and is readable for them. What I would pay attention to is setting a color any time you set a background color. Many validators or accessibility checkers will flag you if you set one and not the other, and it's a good practice to get into.

Zoe

--
Zoe M. Gillenwater
Design Specialist
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to