Maciejewski, James wrote:
> We are adding ALT text to all of our images. We have a few images that
> are linked from our CSS for notes, tips, warnings, etc. 
>  
> The code looks like this:
> background-image: url(folder/image.gif);
>  
> Is it possible to add ALT text to this?
>  

No, but nor should it be necessary.

If the images are purely presentational in nature (a textured 
background, a fancy bullet on a list, etc.) then they should be applied 
via CSS as above; as they have no semantic value there is no need, and 
no mechanism, for specifying an alt attribute.

If the images have semantic value (e.g. an error icon indicating a form 
field in need of a value) then it is not correct to apply it with CSS: 
it is part of the content of the page, and should be in the HTML as an 
img element with an alt attribute.

Accessibility expert Derek Featherstone explains this well in an article at:
<http://24ways.org/advent/naughty-or-nice-css-background-images>

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to