Jump to content

- - - - -

CSS Help - can't get "a:active" to work on menus with category sub-pages

  • Please log in to reply
1 reply to this topic

#1 jamato2000



  • Members
  • 2 posts
  • Country: Country Flag

Posted 19 March 2012 - 02:07 AM

I'm working on a site with a custom submenu (under the "Music" tab) of categories and for some reason can't get "a:active" or "current_page_item a" to show grey text on the active page. I also noticed that on any main menu page with a sub menu, the active state does not show on those pages. Can anyone help? Thanks.

#2 Danny


    Is Awesome!

  • Moderators
  • 19817 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 19 March 2012 - 08:11 AM

Hi, The reason why this isn't working I think is that your "Music" menu item is actually the same URL for the mixes sub menu. When you view your menu using Firebug or Chrome's web dev tool, your menu item Music has no selector for current page for the reason above. You would need to change the URL of the Music menu item so that it does not use the URL for mixes. Then current page/menu item will work.