Call SEO0845 838 7448 SEO RSS Feed

Using Image as Replacement for Text : The FIR Method

Jul 102007

published by Dan in Accessibility | Website Design with 2 Comments

(This is the second in a series of post discussing Images as replacement for text to make use of beautiful fonts without sacrificing the accessibility of your site)

Douglas Bowman has created an excellent tutorial on this using a method called Fahrner Image Replacement (FIR). FIR is is named as such as a credit to Ted Fahrner, being the one who thought of the idea. The FIR method is one of the most common image replacement techniques but it has one flaw (which we will discuss later) that affects accessibility to screen readers. To implement this image replacement technique, you enclose the text to be replaced in two tags: the outer containment depends solely on your semantic needs, and the second (inner) one is a span.
See below:

<h1 id="FIRreplace">
<span>Text to be Replaced</span>
<h1>

Take note that I added a “FIRreplace” id to this particular h1 container.

Then in your CSS you should put the following styles:

h1 #FIRreplace {
    background-image:url("image_replacement.gif")
    background-repeat:no-repeat;
    height:30px
}
h1 #FIRreplace span {
    display:none
}

This has an effect of hiding your text (because of the style for the span) and replacing it with your appropriate image (image_replacement.gif) using the outer container.

Although this style works in most browsers, this fails in screen readers because of the display:none part for the span tag. Next post I will discuss other methods of image replacements for text that tries to address this flaw of the FIR method.

AddThis Social Bookmark ButtonAddThis Feed Button

RSS feed | Trackback URI

2 responses to Using Image as Replacement for Text : The FIR Method

2007-07-13 19:28:01

[…] Website Design & SEO Blog Web design Peterborough « Using Image as Replacement for Text : The FIR Method […]

(Comments wont nest below this level.)

 
Comment by Wangchul
2007-08-08 03:19:12

ye i agree

(Comments wont nest below this level.)

 

Leave a reply


You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.

SEO Services | SEO Firm | SEO Consultant | UK Search Engine Optimisation | Search Engine Optimisation Services | Search Engine Marketing | Pay-Per-Click
Internet Marketing SEO | SEO Company | SEO Service | SEO Companies | SEO Promotion | SEO Strategy | SEO Peterborough | SEO Ranking

© 2007 Doublespark Limited - All rights reserved.

This site is protected by Copyscape