alt tags in CSS, accessabitity issue?

Associate
Joined
19 Jul 2006
Posts
1,847
I have a site that uses this css
Code:
	background: #B1A778 url("logo2.gif") no-repeat;
	width: 800px;
	height: 110px;
	padding: 0;
	float: left;
	text-indent: -9999px;
	border-bottom: 10px solid #9FBCD1;

If the CSS sheet does't load then there is some text saying what "logo 2" says.
It has passed the online accessability tests, but is it right, as there is no alt tage for the image, as its handled by CSS.
Is there a way of putting a alt tag in the CSS or does it not matter?
 
(Minor point, but it's an alt attribute, not an alt tag.)

No, it doesn't matter and isn't possible. As you say, the text that is in the HTML will be displayed if the CSS isn't available. No need to add alternative text to the alternative text you already have :D.
 
Cheers,
Dunno if you read my other thread, but i have to show some of my sites and show how they meet all the critera. and talk for 5 mins about it. so want everything to be as tight as posible
 
Back
Top Bottom