Image replacement techniques

Two new ways of using CSS to replace the text of a header (or any other element) with an image have shown up. The using background-image to replace text technique has the disadvantage of needing an extra <span> element wrapped around the text being replaced. Stuart Langridge (A new image replacement technique) and Seamus P. H. Leahy (Image Replacement-No Span) have independently of each other come up with a technique that does not require any extra code inserted into the HTML.

Posted on August 5, 2003 in CSS