The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

CSS nav with memory...

Hi,

I'm using a CSS/DHTML dropdown that doesn't use an imageswap...it's strictly text & hex based.
I'm quickly coming to the realization that there's no memory to this nav.

I mean, from page to page the navigation always looks exactly the same, it doesn't tell you which page your on.
So unless your using breadcrumbs or something, the user can easily get lost on the site as they look back to the nav and find it all black.

Now I know that I can name each button separately, and create a separate class for each one of them...
then manually change the color per page/section of the website. Or alternately, keep a different stylesheet for each section of the site.

But this seems like a whole lotta roundabout - just to change a button color.

Can someone help me understand this part of CSS navigation?
How do I give it memory without having to create three times as much CSS code as a basic javascript rollover?

You have to assume that excessive amounts of code, whether they be CSS or HTML, will slow down a site.
So there must be a technique to this, I just can't find a lead on it anywhere.