Validation Warning (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Avick -> Validation Warning (8/15/2006 16:20:21)


I have been trying to validate my CSS style sheet using the W3C validation service.

I am getting no errors but I am getting the warnings similar to the following.

quote:


Line : 11 (Level : 1) You have no background-color with your color : a


I have set the background color to transparent but I am still getting this warning.

I don’t want to put a color in the background as there are gradients on the page and it would not look right on the site I am working on.

Should I ignore these warnings and show my page as CSS valid or try to get round the problem.

At the end of the page it is showing the W3C CSS valid icon but no reference link to take people back to the validation page.





jaybee -> RE: Validation Warning (8/15/2006 16:37:27)

Ahhh yes, the good old background warning.

It's recent message, never used to happen. It suddenly appeared one day and I nearly had a heart attack.

The reason for the warning is, transparent isn't a colour.

Basically, it's a visual warning check to get you to make sure that you have sufficient contrast and aren't "disappearing things" into the background. As long as you're happy that it's all visible then ignore it.




womble -> RE: Validation Warning (8/15/2006 16:59:49)

If it starts throwing up the background warnings I usually put in "inherit" - that usually keeps it happy, and providing I've checked a background's not going to start inheriting anything from the <body> tag or whatever that I don't want it to, it usually works okay.




jaybee -> RE: Validation Warning (8/15/2006 17:12:06)

Last time I did that my page became ummm interesting.

My background image was everywhere. [:D]




womble -> RE: Validation Warning (8/15/2006 17:39:18)

[:D]

Guess I've been lucky with it then




Avick -> RE: Validation Warning (8/15/2006 18:01:26)

Tried the inherit function but it screwed up the page so that’s a no no.

If this is a relatively recent thing will that mean that all pages with transparent background are not valid CSS??

I think I will display my pages as Valid CSS as there is no way around this problem and its not really an error more a warning. [:)]




jaybee -> RE: Validation Warning (8/15/2006 19:18:23)

quote:

ORIGINAL: Avick

If this is a relatively recent thing will that mean that all pages with transparent background are not valid CSS??


It's valid css to use transparent.

The warning is just to tell you that you don't have specific colours specified and to go check that the page is OK. If it was invalid then you'd get an error not a warning.




Avick -> RE: Validation Warning (8/15/2006 19:55:26)

Thanks jaybee
From now on if I just get warnings its Valid [:D]

Spent hours trying to get them to go away




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875