On Mon, 04 Dec 2006 07:15:01 -0700, Bob Meetin wrote:
> i don't normally add text as background, but i have a situation where 
> this might come in handy.  i thought i saw this in a book or online, but 
> can't remember where.  how do i set up a style to display text defined in 
> the stylesheet?

Hi Bob,

An HTML block-level element can be thought of as having three layers. 
Topmost (nearest you, the viewer) is the text layer; below that is where 
any background image sits, with any specified background color below that.

So text can never be part of the background layer unless it's in the form 
of an image. But of course you can "layer" any block level element over the 
top of another by using CSS positioning, possibly achieving your goal.

As far as defining text in CSS, you can use generated content[1] -- with 
the caveat that the world's favorite browser does not support it.

If you get to the point where you have a specific requirement and some 
markup we can play with, you will likely get a more specific response.

Good luck!

[1] <http://www.w3.org/TR/CSS21/generate.html>

Cordially,
David
--
www.hucklesby.com



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to