W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: Stand-in color before images load

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Tue, 29 Mar 2005 11:03:42 +0200
Message-ID: <424919EE.8000807@students.cs.uu.nl>
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 


Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Tuesday, 29 March 2005 09:04:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC