okay, here's the problem...
I'm converting a mostly style-separated-from-content site into a completely style-separated-from-content one. You can see the "before" here (the "after" is still in stages on my hard drive...).
The menu is a series of pictures, 120px tall and 64px wide with a 1px border on the left. They are used in an unordered list as a navigation bar. I'm assigning each <li> with an ID so I can use background images instead of the <img>.
Now, I've checked out a bunch of ideas for accessible rollovers and I'm a big fan of the langridge/leahy technique. It basically uses padding to "scoot" the text out of sight. The problem is, I can't seem to make the image part of the link active, only the text, which is hidden. So no rollover.
I solved some of this problem in another part of the site by giving the <a> tag the ID, but this doesn't make my code semantic. In a perfect world, without styles I get an unordered list with text links to my pages, and with styles, I get pictures for my links. I know this has been done countless times, but I seem to be at a dead-end.
Any help would be greatly appreciated!
-Rich
<edit>The "work in progress" is at http://richardmedek.com/test/current/.
The stylesheet: http://richardmedek.com/test/style.css
</edit>
I'm converting a mostly style-separated-from-content site into a completely style-separated-from-content one. You can see the "before" here (the "after" is still in stages on my hard drive...).
The menu is a series of pictures, 120px tall and 64px wide with a 1px border on the left. They are used in an unordered list as a navigation bar. I'm assigning each <li> with an ID so I can use background images instead of the <img>.
Now, I've checked out a bunch of ideas for accessible rollovers and I'm a big fan of the langridge/leahy technique. It basically uses padding to "scoot" the text out of sight. The problem is, I can't seem to make the image part of the link active, only the text, which is hidden. So no rollover.
I solved some of this problem in another part of the site by giving the <a> tag the ID, but this doesn't make my code semantic. In a perfect world, without styles I get an unordered list with text links to my pages, and with styles, I get pictures for my links. I know this has been done countless times, but I seem to be at a dead-end.
Any help would be greatly appreciated!
-Rich
<edit>The "work in progress" is at http://richardmedek.com/test/current/.
The stylesheet: http://richardmedek.com/test/style.css
</edit>
Comment