Re: [css-d] images off / css on

2007-10-23 Thread Éric Vesque
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

[css-d] images off / css on

2007-10-23 Thread Brian Cummiskey
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

Re: [css-d] images off / css on

2007-10-23 Thread Jukka K. Korpela
É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 {

Re: [css-d] images off / css on

2007-10-23 Thread Éric Vesque
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

Re: [css-d] images off / css on

2007-10-23 Thread Brian Cummiskey
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

Re: [css-d] images off / css on

2007-10-23 Thread Jens Brueckmann
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

Re: [css-d] images off / css on

2007-10-23 Thread Thierry Koblentz
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

Re: [css-d] images off / css on

2007-10-23 Thread Jukka K. Korpela
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