Click to See Complete Forum and Search --> : Strange warnings on CSS validation


pyroclasm
11-24-2005, 02:08 PM
Take a look: http://jigsaw.w3.org/css-validator/validator?uri=http://www.freewebs.com/pyroclasm924/stylesheet.css

Why does it say "You have no color with your background-color" if I do have a color?

How would I go about fixing these (or would I even need to fix these?)

Mr Initial Man
11-24-2005, 03:26 PM
If you define the color of an HTML element, you should define the background color as well, and vice versa.

Simply enter background:#zzzzzz; into your CSS for every element it asks about.


As for the redefinition warnings, it's simply saying that you've defined something twice. Look over your CSS sheet, and see if you can fix that.

Ultimater
11-24-2005, 03:36 PM
A lot of times when I don't want to specify a color for one of the two, I use "inherit".

bokeh
11-24-2005, 05:12 PM
Don't forget that thing is a robot, for example, even if an element doesn't contain text it still wants the color.