WebAIM - Web Accessibility In Mind

E-mail List Archives

CSS background image Alt Text


From: Ben Morrison
Date: Jun 27, 2003 4:08AM


Im in the process of a re-design of our site. Using CSS for layout I have
the following:

background:#F11A07 url(images/dogstar.gif) no-repeat 140px 35px;

Which is great, perfect position, can lay text where I want over it etc.

But, how do I specify alt text for such an image? The image says
"welcome to dogstar". Could I use:

<div id="welcome">welcome to dogstar</div>

How has anyone else solved this?


To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/