By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,040 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,040 IT Pros & Developers. It's quick & easy.

background color CSS validation warning

P: n/a
A minor issue. When I try to validate a CSS line, I get an error.

The line inside the style for a div is

background-color: #FFFBF0;

The warning (jigsaw.w3.org) is:

Line : 54 (Level : 1) You have no color with your background-color
: #inside

What's up?

--

Haines Brown, KB1GRM
Dialectical Materialist
Oct 23 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Els
Haines Brown wrote:
A minor issue. When I try to validate a CSS line, I get an error.

The line inside the style for a div is

background-color: #FFFBF0;

The warning (jigsaw.w3.org) is:

Line : 54 (Level : 1) You have no color with your background-color
: #inside

What's up?
Literally: you haven't set a colour (for the text) to accompany that
background colour. The validator just gives you a warning, to make
sure you didn't do that by accident. What if you set the background
colour to black, and forgot to change the default black colour for the
text to something more visible against a black background? Rule of
thumb: Always set the colours (background and text) in sets, so you
know for sure there is enough contrast between them.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Oct 23 '06 #2

P: n/a
In article <87************@teufel.hartford-hwp.com>,
Haines Brown <br****@teufel.hartford-hwp.comwrote:
A minor issue. When I try to validate a CSS line, I get an error.

The line inside the style for a div is

background-color: #FFFBF0;

The warning (jigsaw.w3.org) is:

Line : 54 (Level : 1) You have no color with your background-color
: #inside

What's up?

The idea is that you may get an unexpectedly clashing or hard to
read or unappealing colour for "text" on top of the background,
inherited unexpectedly or via a user stylesheet.

--
dorayme
Oct 23 '06 #3

P: n/a
Els <el*********@tiscali.nlwrites:
Haines Brown wrote:
>A minor issue. When I try to validate a CSS line, I get an error.

The line inside the style for a div is

background-color: #FFFBF0;

The warning (jigsaw.w3.org) is:

Line : 54 (Level : 1) You have no color with your background-color
: #inside

Literally: you haven't set a colour (for the text) to accompany that
background colour.
Very interesting; never would have guessed. Thanks.
--

Haines Brown, KB1GRM
Dialectical Materialist
Oct 24 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.