Re: Layered presentation on a single element

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