SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Navigation Menu Stay on Selected when Childs of Menu

  1. #1
    SitePoint Evangelist
    Join Date
    Aug 2009
    Posts
    473
    Mentioned
    0 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 trophy
    SitePoint Award Recipient markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,016
    Mentioned
    25 Post(s)
    Tagged
    0 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
  •