March 13, 200818 yr I've used CSS image replacement in the past for a lot of projects. I have to admit, I wasn't up to speed with accessibility back then, the method I used was a very basic text-indent: 9999px;, which has it's drawbacks. The most prominent drawback is that the text won't display if images are turned off, but CSS is kept on. There are a huge variety of image replacement techniques, as described on the Mezzoblue post, Revised Image Replacement. This is a really interesting topic, and I'd love to hear how everyone else covers this area. What methods do you use? And.. Do you cater for users that have images off, but CSS on? I look forward to hearing your techniques. Rob
March 13, 200818 yr I also just use the negative text-indent. I was aware that there'd be issue if images was off or didn't load. But I haven't considered it as critical. I've haven't made extensive use of the method, usually just for the site header.
March 13, 200818 yr Surely you should get the alt attribute when the image is off which then displays as plain text?
March 18, 200818 yr This is not a problem really. Use CSS backgrounds when the image is for design. If the image is related to the content, then use the <img>-tag. If you are using a css-replacement, use a negative text-indent. That is the most SEO-friendly method. If you use display: none; on the text, the text won't be seen by Search Engines neighter. You may use visibility: hidden; but I think negative text-indent is the best method.
Create an account or sign in to comment