Previous Message
Next Message

RE: [css-d] Visual formatting trick

Sent by Saila, Craig on 4 April 2003 19:07


Jeff Shepherd wrote:
> I just cam across a somewhat cool visual formatting.  The text is in
> a white box with a black border and behind it is a grey box, narrower

If I understand your description correctly, it's fairly easy to do with
CSS using absolute position and the z-index. Here's a quick example (IE
5.5, Moz 1.4a, Opera 7):
<http://www.saila.com/attic/sandbox/text-over-background.html>

The text DIV is set over the background using z-index. The background is
absolutely positioned and given a height to match the canvas size. You
could play around with the height settings to get the right effect.

-- 
Cheers,

Craig Saila
------------------------------------------
[EMAIL-REMOVED] : http://www.saila.com/
------------------------------------------
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: