W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: Layered presentation on a single element

From: Josh Hughes <josh@deaghean.com>
Date: Mon, 23 Jun 2003 10:55:53 -0400
To: Christoph P‰per <christoph@paeper.de>
Cc: www-style@w3.org
Message-ID: <20030623105553925559.GyazMail.josh@deaghean.com>

> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT