About Posh CSS
Posh CSS is a collection of Cascading Style Sheet Articles, Tutorials, Tips and Code snippets for the modern day web designer.
Browse the site
Submit a link
Have you written or read a great resource relating to CSS that we are not linking to yet? Let us know.
Browse our Archives
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
Get in touch
Have a question or just want to drop us a line? Contact Us →
Posh CSS
Intelligent Navigation Bars with JavaScript and CSS
I’ve developed a trick over the years that I’ve used on a number of websites now for making my sites’ navigation bars “intelligent” or “self-aware.” By that, I mean that the navigation bar automatically knows which tab/button/whatever should be considered the currently active link, without having to manually specify a class or ID on either the body tag or on the links themselves.
Comments
No comments yet, add yours below.
Commenting has closed for this article.


