W3C home > Mailing lists > Public > www-style@w3.org > December 2004

Re: color:transparent

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Fri, 17 Dec 2004 18:32:15 +0100
Message-ID: <41C3181F.5080103@annevankesteren.nl>
To: Bryce Fields <bryce.fields@gmail.com>
CC: www-style@w3.org

Bryce Fields wrote:
> I'm sure that this is probably a bad idea on many levels, but I
> thought I'd float it out there anyway.  You learn as much from
> negative feedback as you do positive.  So here goes.
> 
> It has occured to me while researching the various image replacement
> techniques, that it would be much simpler to implement IR if you could
> just declare color:transparent.  Then you wouldn't need extraneous
> markup, no "off-left" positioning, etc.  Text would not need to be
> artificially manipulated to move it out of the way of the background
> image.

Although CSS3 allows this, as you find out in your follow-up e-mail, it 
is much more appropriate to use the 'content' property, as in:

   h1#contact{
    content:url("contact"),contents;
   }

I believe Opera supports this in some way:

   h1#contact{
    content:url("contact");
   }


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Friday, 17 December 2004 17:32:34 GMT

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