Web Design Articles

Headings as images - The Lindsay method


Russ Weakley
01-Aug-03

There has been a lot written lately about how to use CSS-based images for headings in order to keep presentation seperate from content.

Apart from using inline images for headings, or the slightly more semantic option of wrapping these inline images inside HTML heading tags, there are many CSS-based and flash-based methods available. Each of them has advantages and disadvantages.

The Lindsay method

The Lindsay method uses existing elements as a starting point for CSS. The H3 is given a background image through CSS but the actual H3 text is still on the page, just hidden by making it very small, and of similar colour to the background of the image.

Advantages:

The image is seperate from the content so if no css support is present the HTML heading will display
There is no additional span or div tags required.
The text is still present on the page (not turned off via display: none), so it is searchable and readable by assistive technologies

Disadvantages:

User stylesheets can over-ride the tiny font size and cause the HX to display over the top of the background image
Users who come to the page with CSS supporting browsers but with images turned off will get no heading at all
Heading here HTML

<hx id="sample4">
Heading here
</hx>

CSS

#sample4
{
width: 400px;
height: 100px;
background-image: url(heading.jpg);
background-repeat: no-repeat;
font-size: 1px;

color: #fff;
}





 

 

why-css-is-good-for-google
using-relatve-font-sizes
random-content-rotation
web-design-xhtml-1-1
web-design-resources
accessibility-intro
web-design-xhtml-2-1
why-internet-marketing
xhtml-latin-1-character-references
google-updates
google-dance
css-positioning-properties
fancy-paragraphs
bob-regan-macromedia-accessibility
web-design-technologies
wrox-beginning-php-4-chapter-3-1
julie-howell-rnib-accessibility
handy-hints-web-design
mod_accessibility
pagerank-1
search-engine-crawling
Definition lists - misused or misunderstood.html
Accessible Data Tables
Developing sites for users with Cognitive disabilities and learning difficulties
An Accessibility Frontier Cognitive disabilities and learning difficulties
Inline elements and padding
Basic webstandards Workshop
Internet Explorer and column collapse
Building a page template in CSS - a step by step tutorial
Remote control CSS
Colored boxes - one method of building full CSS layouts
Replicating a Tree table
Creating a graph using percentage background images
Simple, accessible external links
Simple, accessible more links
Styling abbreviations and acronyms
 Web standards checklist
Floated items inside containers
Liquid layouts the easy way
Two columns with color
CSS Centering - fun for all!
Body padding and margin
List inheritance and Descendant Selectors
Taming the Taming lists model
Headings as images - The Lindsay method
Ideal line length for content
Validating Australian Museum Online
Styling the hr element
Styling and font family names that contain whitespace
Sample CSS Page Layouts