Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Crib Sheet, cheatsheets, shortcut lists, syntax lists, & others


photon - 5:37 pm on Sep 9, 2004 (gmt 0)


You can use the same concept to style a "current page" link in menus. Set the body id to "homepage" and separate ids on each menu item, e.g., set the home link id to "home".

Your CSS could then look like this:

#homepage #home {font-weight:bold; text-decoration:none;}

You can repeat that for each page/nav link combination. No additional programming required to "highlight" the current page's link.

This relates to the concept of CSS signatures (search with your SE of choice). Use your site name as the id for the HTML element on every page, which allows users to apply their own stylesheets to just your site without affecting any other sites they may visit.


Thread source:: http://www.webmasterworld.com/css/4514.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com