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

Re: Stand-in color before images load

From: David Woolley <david@djwhome.demon.co.uk>
Date: Tue, 29 Mar 2005 08:48:03 +0100 (BST)
Message-Id: <200503290748.j2T7m3j02189@djwhome.demon.co.uk>
To: www-style@w3.org

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT