Brian Cummiskey a écrit :
Hi All,
Perhaps this is more an accessibility questions than CSS, but the fix
lies in the css i believe.
Scenario:
div dark blue background image gradient.
h1 on top of it, styled white to be readable/h1
/div
Now, when images are off, the text is white on
Hi All,
Perhaps this is more an accessibility questions than CSS, but the fix
lies in the css i believe.
Scenario:
div dark blue background image gradient.
h1 on top of it, styled white to be readable/h1
/div
Now, when images are off, the text is white on white (on an assumed not
Éric Vesque wrote:
div dark blue background image gradient.
h1 on top of it, styled white to be readable/h1
/div
- -
Just add:
background-color: (whatever color you want);
to the properties of your div; this should do it.
It's safer to set the properties for the h1 element, e.g.
h1 {
Jukka K. Korpela a écrit :
It's safer to set the properties for the h1 element, e.g.
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
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
Hi Brian,
why would you not set the dark blue background on the div itsself?
Cheers,
jens
--
Jens Brueckmann
http://www.yalf.de
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ
I think I mis-wrote what i really have for markup.
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
Brian Cummiskey wrote:
I think I mis-wrote what i really have for markup.
lets try some ascii:
Generally, a URL tells more than fragments of code and ASCII illustrations
together.
-DIV WRAP gradient, 150px tall begins--|
-margin and filler