{"id":630,"date":"2008-03-24T05:45:20","date_gmt":"2008-03-24T12:45:20","guid":{"rendered":"http:\/\/css-tricks.com\/nine-techniques-for-css-image-replacement\/"},"modified":"2012-11-24T09:38:16","modified_gmt":"2012-11-24T16:38:16","slug":"css-image-replacement","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/css-image-replacement\/","title":{"rendered":"Nine Techniques for CSS Image Replacement"},"content":{"rendered":"

CSS image replacement<\/strong> is a technique of replacing a text element<\/strong> (usually a header tag) with an image<\/strong>. An example of this would be including a logo on a page. You may want to use a <h1><\/code> tag and text for this for the accessibility and SEO benefits, but ideally you’d like to show your logo, not text.<\/p>\n

\"\"<\/p>\n

Update (March 14, 2012). I’ve created a new page that now covers more image replacement techniques, including the more recent Scott Kellum Method<\/a> and the HTML5BP Method. I’m calling it the CSS Image Replacement Museum<\/a>.<\/div>\n

Note that some of these techniques are very old<\/em>. Web design in the early 2000’s was a lot different than it is now, but there was still much thought being put into accessibility. Because of that, most of these techniques still hold up today. It is still very interesting to see all the thought and problem solving that was put into this. Also note that I tested all these FF2, Opera 9, Safari 3, and IE 6 and they all behaved identically (hard to believe, I know).<\/p>\n

The report card consists of five major categories:<\/p>\n