Re: Transparent text

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 UTC