CSS Validation Problem

Soldato
Joined
18 Oct 2002
Posts
4,410
I'm getting the following W3C CSS validation warning:

"You have no background-color with your color"

The problem is that it's for link text which may be on different backgrounds, one of which is a graduated image. I'd like the background of the text to be transparent so I don't really want to specify a background colour for it at all but I do want to specify the colour of the text so I do need to specify the color attribute. Unfortunately, that doesn't seem possible. Am I asking too much? Is this not an issue with W3C's CSS validation that it can't accept that link text may need to be placed over different backgrounds?

I can't even set the following:

background-color: transparent;

While this is valid CSS (the default bg colour for an element is "transparent"), the validator still seems to demand a solid colour :confused:
 
Last edited:
Beansprout said:
There's basically not much you can do, although there's a couple of sometimes-useful tips here :)
Thanks for that, from the tips on there I used this:

background: inherit;

And why didn't I think of that myself? :o
 
Back
Top Bottom