Forums » Support
Active menu item stays highlighted
jimmythesaint
UNITED KINGDOM
2008-05-03 11:04:07
 

I'd like to alter the css so that when you click on each menu item it highlights (this I have done) and stays highlighted for as long as that page is active (this I haven't). In other words, I want it to be immediately obvious from the menu which page the user is at. Can anyone - that'll be you Vaska, Eloisa etc! - tell me if there's a fairly simple way of doing this? (I am a total beginner). I have visited lots of participant's sites but have failed to find anyone who's done this, so my plan to steal the code from someone else has come to nothing...

Vaska
I WROTE THIS
2008-05-03 11:29:07
 

Add this to your css...and the tweak it from there to your needs...

#menu li.active { background: #fff20d; }

You're on your way. ;)

jimmythesaint
UNITED KINGDOM
2008-05-03 16:24:59
 

Cool. How do I make it effect the highlighted words only and not the background, though? Thanks, Vaska.

Vaska
I WROTE THIS
2008-05-03 16:30:02
 

#menu li.active a { }

jimmythesaint
UNITED KINGDOM
2008-05-04 07:54:18
 

Beautiful. Thanks a lot.

Showing 1 - 5 of 5 posts in Forum > Support > Active menu item stays highlighted
 

You need to be logged in to post.