[EMAIL PROTECTED] wrote:

> Hello, all. I'm having an issue with the wrapper div inheriting the
> background color of the body, but that isn't what I want, as you can
> see below.

Normally, it is best to post the URL of a demo page to illustrate the 
problem (and to mention the browser(s) used for testing), when you have 
a specific problem.

> background-color: #000000;
...
> background-color: #333333;

Probably you just see #333333 as similar to #000000. They aren't that 
far from each other. If you modify the color codes somewhat, you'll 
probably notice that your backgrounds _are_ applied.

Backgrounds don't inherit, except via the explicit value of inherit (and 
even then only on supporting browsers, excluding IE). The initial value 
for background-color is transparent, which may cause the illusion of 
inheritance. So _if_ the latter declaration were somehow incorrect, e.g. 
with a malformed color value, so that the declaration would be ignored, 
the inner element would have a transparent background (unless some other 
style sheet sets a background for it), and this could be misinterpreted 
as inheritance.

But your style sheet is formally correct and the background _will_ be 
applied (with the usual CSS caveats) to the applicable element. However, 
it is so dark that it might be mistaken for black.

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/ 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to