Submit a CSS related link →

Posh CSS

For the modern day web designer.

Intelligent Navigation Bars with JavaScript and CSS

# Linked to 20 February 2008, 06:34 in by Sam Brown

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.

Read more at www.cssnewbie.com →

Sam Brown

Sam Brown is a freelance interface designer and web standards developer based in Edinburgh, Scotland. Sam's work can be seen at Massive Blue, blogs at Sam Brown and is on Twitter at @sambrown.