Jukka K. Korpela wrote:
> h1 { color: #006; background: #fff; }
>
> If you only set background for the enclosing div, then most of the time the
> h1 will have a transparent background and things will be OK. But why take
> chances when there is nothing to be won? Some day the page might be viewed
> in a situation where some other style sheet affects it, too, possibly a user
> style sheet, and that style sheet might set a background color, and even a
> background image (that's why my example sets background and not just
> background-image), and who knows what they might be?
>
> Generally, always set color and background together.
I think I mis-wrote what i really have for markup.
lets try some ascii:
|-DIV WRAP gradient, 150px tall begins....--------------|
|---------margin and filler space--------------------------|
|---------h1, approx 18px line height, color:white;--------|
|---------gradient, 150px tall continues...-----------------|
|---------margin and filler space--------------------------|
|---------gradient ends ----------------------------------|
|-/DIV WRAP-------------------------------------------|
If I set the h1 to have a bg color, such as the #006 suggested to match
the dark blue, then it stands out and blocks the gradient.
Effectively, i need a transparent background on the h1 when images are
on, but a #006 when images are off.
Unless i'm misunderstanding your response?
Appreciate the feedback so far.
-Brian
______________________________________________________________________
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/