PDA

View Full Version : .nav :active


yurg
06-06-2006, 03:35 PM
hi

i have a navigation bar on the left hand side of my website and I was wondering how i can make it so that it highlights the section in the nav bar in a different colour so that the viewer can see what page they are on. ive tried .nav :active in my css style sheets and it sort of works. only changes colour when I hold it on for a couple of seconds and drag away the mouse. i want it to stay a different colour until i click on a different tab. take a look @ http://www.softwalker.co.uk and let me know what you think.

cheers
charlie

domedia
06-06-2006, 05:54 PM
:active does not mean active page. It's a CSS pseudo element for when the link is active, exactly the behaviour which you explain it's currently doing.

TO get s acusotm color for the link which goes to the current page you're on, you need to use a server side language available on your host to check which page you're on and assign a custom class to that link.

Tonia Sears
06-07-2006, 08:46 AM
Hi i had this issue the www. below will take you to a helpful site (but it produces more issues with jump menus)

http://www.communitymx.com/content/article.cfm?page=1&cid=F1394