473,326 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

background color CSS validation warning

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
3 3053
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: motoman | last post by:
i have the following code (see below), i run my validation and get unexpected results. Public ID: null System ID: file:///C:/DATA/Sandpit/Eclipse/workspace/dtdValidation/memory.xml Line number:...
4
by: Dj Frenzy | last post by:
Hi, I know how to use javascript to change a background image to another background image, and how to change a background colour to another background colour. Is there a way to change an image to a...
0
by: Matthias Lohrer | last post by:
Hi, I'm playing around with the possibilities of Page.ParseControl. Thanks to Kirk Allen Evans I got my example running (Posting Juli, 17, "Re: Generating ASP.NET-Controls with XSLT...
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
9
by: Rhino | last post by:
I've been updating some CSS today and got one odd error from the validator at http://jigsaw.w3.org/css-validator/. Every time I had 'background: transparent;' (or background-color: transparent;)...
2
by: Ed Mullen | last post by:
Ok, I get the thing about specifying color and background-color together. So I specify: background-color: transparent; in my CSS file. And I still get the warning. The CSS file is: ...
2
by: bissatch | last post by:
Hi, I am running a w3c CSS validation check on a site in development. I have many errors saying that my CSS is not valid because I have not defined the background-color but instead left it...
1
by: steve_marjoribanks | last post by:
I've posted this here and in the comp.lang.java.programmer group because I'm not really sure if it's a Java problem or an XML problem! Basically I have written a Java application which loads an...
2
by: Haines Brown | last post by:
I have situations in which I define the color attribute for an element that is displayed against a background-image. For example, an incipit: #intro:first-letter { margin: -0.05em 0.2em -0.2em...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.