- From: Laurens Holst <lholst@students.cs.uu.nl>
- Date: Tue, 29 Mar 2005 11:03:42 +0200
- To: www-style@w3.org
David Woolley wrote:
>>div {
>>background-color: #fff; /* white bg in div */
>>}
>>
>>h2 {
>>color: $fff; /* white text in header */
>>background-image: url(cool.png); /* a dark yet transparent image */
>>background-standin-colour: #000 ; /*the bg will be black till image
>
> This doesn't degrade gracefully. If you set a foreground colour, you
> must set a background colour that contrasts, and you must do using the
> same generation of CSS attributes as used to set the foreground colour.
Nevertheless, I think this is an interesting scenario, which could use
some attention. If you look at my website ( http://www.grauw.nl/ ), the
menu is white text over a green background image. While or when the
background image is not loaded, the text is illegible, however I can’t
set a background colour to remedy that as the background image is
transparent.
~Grauw
--
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Tuesday, 29 March 2005 09:04:33 UTC