WebAIM - Web Accessibility In Mind

E-mail List Archives

CSS background image Alt Text

for

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


Hi,

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

#homenav{
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:

#welcome{
display:none
}
<div id="welcome">welcome to dogstar</div>

How has anyone else solved this?

ben



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