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

Re: Layered presentation on a single element

From: (wrong string) šper <christoph.paeper@tu-clausthal.de>
Date: Mon, 23 Jun 2003 16:21:42 +0200
Message-ID: <004601c33992$c4f4eca0$3ef4ae8b@heim4.tuclausthal.de>
To: <www-style@w3.org>

Josh Hughes:
> h1:layer(0) {
> background-image: url("images/foo.gif");
> }
> h1:layer(-1) {
> display: none;
> }
> <h1>This text will not display. 100x100 foo.gif will show in
> its place</h1>

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.
Received on Monday, 23 June 2003 10:21:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC