W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

Re: background-image in CSS

From: Steve Brumbaugh <sbrumb@fas.harvard.edu>
Date: Thu, 17 Jan 2002 14:44:06 -0500 (EST)
To: Charles McCathieNevile <charles@w3.org>
cc: Hoehnermusikfan <info@hoehnermusikfan.net>, Jason Megginson <jason@bartsite.com>, <w3c-wai-ig@w3.org>
Message-ID: <Pine.OSF.4.33.0201171433490.26491-100000@is08.fas.harvard.edu>
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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:07 UTC