SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    636
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Navigation Menu Stay on Selected when Childs of Menu

    Hi Guys,

    Heres the site...

    http://freshtastik.ca/modo/menu/breakfast-menu/

    Now when you click on Lunch or Signature Meals (inactive at the moment) I'd like the Menu in the main navigation to stay orange. How can I do this? It only stays orange when its on the Breakfast Menu.

    Need this for the Catering side as well.

    Thanks for the help in advance.

    Mike

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi Mike,

    You just need to add a "selected" class to the active menu item for it to highlight. This needs to be in the html, there's no way for the css to know which page you're on without the class.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •