Re: background-image in CSS

On Thu, 17 Jan 2002, Charles McCathieNevile wrote:

> There is no way to have an alternative in CSS for a background image. But
> this should not be a problem - ensuring pages can be read without style
> sheets, for all its problems in XML, does cover the requirement that style
> sheets are not used for conveying the required information, only for making
> its presentation better to makeit easier to use.

Also, you could create a div element, immediately after the element
containing your background image, that contains alternate text for your
background.  Using a style sheet, you can then set that div to {display:
none} so that only browsers not using CSS render the text.

It's an imperfect solution -- what if someone using a CSS-compliant
browser chooses not to load images? -- but it may still prove helpful.

--Steve

Received on Thursday, 17 January 2002 14:44:12 UTC