Re: Stand-in color before images load

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 ( ), 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