On Thu, 15 Jun 2006 11:52:42 -0500, Dale Lists wrote:
>
> So it would seem that I now need to define a:link, a:hover, etc for 
> each place where there may be a different background color for each div 
> I may use a link in. That both kind of makes sense, but also would seem 
> to make things far more complex then they need to be. Or is there 
> something I could use when setting up (in this case) my links so that 
> it would know to inherit the appropriate background color?
> 
The background set of properties are unusual in that they do not inherit 
from surrounding elements. I believe the only time background-color sort 
of inherits is when applied to TABLE COLs or COLGROUPs.

The default value for background-color when none is defined is 
transparent, allowing any background set on an enclosing element to shine 
through. The reason the validator warns you about having a 
background-color defined with your (text) color is in case the color 
shining through may be similar, making your text vanish. The validator 
checks one rule at a time and can't tell.

It's a good warning to have, though. I see many sites with no background 
color set on any enclosing element - not even the BODY. As not all (my) 
browsers are set to white backgrounds, I get bizarre results sometimes.

Cordially,
David
-- 
David Hucklesby, on 6/15/2006
<http://www.hucklesby.com/>
--



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to