Highlighting the current page in main nav only

Permalink
With

ul.nav li ul li a.nav-selected, ul.nav li a.nav-selected{color:#ff3399; text-decoration:none;background-color:black; }


I can highlight the current page on any navigation.
But i want it to only highlight the page on main navigation and not on sub-navs.

Is this possible without javascript?.

I have two auto-navs one is the main nav and the second is the sub-nav for each page.

Thank you in advance.

 
WebcentricLtd replied on at Permalink Reply
Hi,
there may well be other ways but one way to do this would be to assign an id to the body tag and make sure this was always assigned as per the parent page and then cascade it through to the main nav. I would imagine it wouldn't be that hard to do.

This is just using styles and a little bit of C5 php to work out the parent and assign the parent id to the body tag.

There may be better and simpler solutions...
Mnkras replied on at Permalink Reply
Mnkras
i would make a custom template and just change the class, or put a div around it