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 15:35:46 -0800
Message-Id: <199611222340.PAA06975@austria.it.earthlink.net>
To: "Gordon Blackstock" <gordon@quartz.gly.fsu.edu>, <www-style@w3.org>
Gordon Blackstock wrote:
> <style>
> .hi { color: yellow; background: green }
> </style>
> <body bgcolor=green text=yellow>

This works only for solid color backgrounds. If a special color name
'clear' were defined such that it erased the element's background, then
you could spec

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

and have w I r E d in a box filled with light.gif and have dark.gif
showing through the letters.

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

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