[Prev][Next][Index][Thread]

Re: Transparent text



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

  <STYLE>
  BODY { background: url(dark.gif) }
  P {    color: yellow }
  .hi {  color: clear; background: url(light.gif) }
  </STYLE>
  .
  .
  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