Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

w3c css validator says body has no color 2

Status
Not open for further replies.

y2k1981

Programmer
Aug 2, 2002
773
IE
Hi all,

I validated my css at the css validator, if you go to the URL below, you'll see the results


it says it's valid but gave warnings. Mainly that a particular selector doesn't have a background-color specified. so I added it to the body selector, in the hope it would "cascade" down through the hierarchy (if ya know what I mean) but now it says no color specified, even though it is. you can even see it in the code underneath, why is this?

also, why is it telling me no background-color specified for all of those things? Are you required to enter one or ... ?
 
Line : 2 Level : 1 You have no color with your background-color : body

is saying,you've set the background-color: but not the color:
Just to inform you that a default balck, could in theory not be visible

Line : 15 Level : 1 Same colors for color and background-color in two contexts body and a.bottom

That's saying the same

The other all say you have color: but no background-color: set, try setting these to
background-color: transparent;

'... and then it wouldn't compile?'
t_avatar.jpg
 
absolutely perfect, thank you soooo much!!!! Of course now I just have to validate all the actual pages (using nested tables seemed like a good idea at the time[/]b!!)
At least now I know that the css is good though

Regards
Martin
 
You might want to try the WDG validator at - it gives fuller, and more friendly messages about things it doesn't like. They also have a nifty HTML validator that'll do a whole site (up to 100 pages) at once!

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top