• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Help with Navigation bar active tab.

#1
Ive just added two tabs to the navigation bar on my forums using this code:

HTML:
<!-- mytab -->
        <li class="navTab PopupClosed"><a href="LINK" class="navLink">TEXT</a></li>
        <li class="navTab PopupClosed"><a href="LINK" class="navLink">TEXT</a></li>
But when i click on them it doesn't select them. For example when you click Forums at the top on here it changes into another colour, so it clearly shows its selected. How can i do this with that code above? It doesnt naturally do it.

Thanks
 
F

Floris

Guest
#2
LINK has to be a page, so it "can" be selected.
You can then have a route, and have a selected tab for that route.
 
#3
This is the code im using fully

HTML:
        <!-- mytab -->
        <li class="navTab PopupClosed"><a href="{xen:link pages/vote}" class="navLink">Vote For Us!</a></li>
        <li class="navTab PopupClosed"><a href="{xen:link pages/servers}" class="navLink">Servers & Chat</a></li>
But that doesnt make it show as selected... it just keeps Forums selected.