Replacing text with images
Douglas Bowman writes about Guiltless Image Use, describing a technique that uses CSS to cause text to vanish from the page, then replaces it with a background-image. I experimented with this technique (see comments attached to that entry) myself last year but ended up using image tags inside h1 elements instead. Doug’s drop cap example shows that the technique can be applied in interesting ways outside of headers.
This is a terrible idea. By setting the text to display: none, screen readers like JAWS, Window Eyes, Home Page Reader (that's about 98% of the market right there) will not read it. They are all based on Internet Explorer, and respect CSS/Javascript/the whole works. Accessibility is a *lot* more than text-based browsers; tricks like this that optimize for Lynx end up doing a lot more harm than good to many other users.
As for drop caps, what's wrong with the IMG tag? JAWS reads the following word correctly:
[img src="/graphics/B.gif" alt="B"]read
Mark - 10th March 2003 15:46 - #
I just spotted this linked to from web graphics - it looks like it would solve the problem of screen readers not "seeing" the header as instead of being set to display: none it is layered underneath a block level span with the specified background image:
Obrazkove odkazy 2
Simon Willison - 11th March 2003 14:18 - #
Craig - 12th March 2003 04:23 - #