Re: Stand-in color before images load

> 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.

Received on Tuesday, 29 March 2005 08:39:11 UTC