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 Comments »

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

ye i agree

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post

Web Design | Graphic Design | SEO | SME Website Design | E-commerce Systems | Website Applications | Website maintenance Website Copywriting
Graphic Design | Corporate Identity and Branding | Logo Design | Search Engine Optimisation | Free SEO assessment | Website Design Peterborough | Graphic Design Peterborough Web Design Bolg

© 2007 Doublespark Limited - All rights reserved.

This site is protected by Copyscape