When it comes to those little tricks like creating a way to indicate a "you are here" look on a CSS menu, Walter Lee Davis has a few ideas. In fact, I had to add the word "other" to the title because I remembered the method I've been using and promoting also came from an idea that Walter posted.
Walter's first suggestion was to modify the link anchor tag of the current page through the Extended interface of the Hyperlink Dialog box. Adding a class or id selector there coupled with a style to target it is really an easy recipe to create a different look for that link. I don't mind the extra work of selecting the current link on each page and adding the selector. But some folks wanted a way around that, so Walter came up with a different idea.
Basically he suggested adding an id selector to the page's body tag, then setting the links up with class selectors that respond to each unique body tag. If you're setting up your menu on your master page, or copying and pasting it from page to page, the upkeep is actually minimal.
Here's a link to my sample page. Download is included.
11.08.2007. 22:13
This article hasn't been commented yet.