W3C home > Mailing lists > Public > www-style@w3.org > November 1996

Re: Transparent text

From: David Perrell <davidp@earthlink.net>
Date: Fri, 22 Nov 1996 16:24:01 -0800
Message-Id: <199611230041.QAA12039@austria.it.earthlink.net>
To: "Gordon Blackstock" <gordon@quartz.gly.fsu.edu>, <www-style@w3.org>
Gordon Blackstock wrote:
> Consider this combination: 
> 
> <style>
> .hi { color: yellow; background: green }
> </style>
> 
> <body bgcolor=green text=yellow>

This is no help if the background is a bitmap. But if a color name
'clear' were defined such that clear text made its background
transparent, then this:

  <STYLE>
  BODY { background: url(dark.gif) }
  P {    color: yellow }
  .hi {  color: clear; background: url(light.gif) }
  </STYLE>
  .
  .
  <P>this week in <span class-hi> w I r E d </span>

would put "w I r E d" in a box filled with light.gif and having
dark.gif showing through the letters.

David Perrell
Received on Friday, 22 November 1996 19:41:34 GMT

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