Re: Stand-in color before images load

Laurens Holst wrote:
> OTOH, img:alt { content: attr(alt) } sounds kinda nice. Though that 
> wouldn’t work with XHTML 2.0.

Why not? However, I think:

  img{ content:attr(src,url),attr(alt,string,"no alt available");

... might be better.

Note that you could create problems with ':alt':

  img:alt{ content:url(foo) }


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Tuesday, 29 March 2005 19:04:16 UTC