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!

Validator problem 1

Status
Not open for further replies.

da644

Programmer
May 21, 2001
159
GB
Hi Everyone.

I'm having a problem getting a stylesheet I'm writing for a new site to validate in the W3C CSS validator. The two lines it error on are background color definitions, one in a element (body) and the other a class (mainArea). They are both constructed as follows:

background-color:#dbdbdb;

and the error is give for both is:

'You have no color with your background-color : BODY'

AND

'You have no color with your background-color : .mainArea'

Any ideas what is wrong????

Best Regards

Andrew.
 
I've had that happen before with the validator. It might be a bug in the program.

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
That means that you don't have a color rule in that element. If you have a background-color rule, you need a color rule too. Vice versa is true too.
Just add a color:inherit or set the color to the textcolor you want. //Daniel
 
Oh, I misread the question. I've gotten a no background-color error for mine.

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top