Re: Layered presentation on a single element

> You mean if I disable images, but not CSS, as I do sometimes, I won't see
> anything, whereas HTML provides two solutions to the issue with either the
> 'alt' attribute of the 'img' element or the content of the 'object' element?
> CSS is not intended to insert important content, neither with [background]
> images with text nor with the content property and its various kinds of
> content. It can be abused this way, though.

I'm not advocating the background-image technique, it was just one of 
the more simple examples I could think of. A better example would 
probably be multiple borders:

p:layer(2) {
	border: 1px solid #00C; //blue
}

p:layer(1) {
	margin: 10px;
	border: 1px solid #c00; //red
}

p:layer(0) {
	margin: 10px;
	padding: 10px;
	border: 1px solid #606; //purple
}

<p>Test</p>

Which would render like this: 
http://www.deaghean.com/examples/layering.html

Josh

Received on Monday, 23 June 2003 10:56:34 UTC