www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] Parent menu CSS issue

  1. #1
    Join Date
    Nov 2008
    Location
    Niagara Falls, Canada
    Posts
    350

    resolved [RESOLVED] Parent menu CSS issue

    Hey everyone. If you look here: http://kmkwebdesign.ca/clients/errol/ and then hover over "presentations" and then click on "elementary", it takes you to the elementary page. I wanted the parent nav item (Presentations) to stay highlighted by having a black background on it, so I added this to the CSS:
    Code:
    #main-navigation ul li.current-menu-ancestor a {background:#000;}
    This worked, however if you hover over "presentations" again, you will see that it also is highlighting the other sub nav item "secondary" in the drop down as well. I don't want it to do that.
    Any way to make the other sub-nav item "secondary" not be highlighted black while keeping the parent menu item "presentations" highlighted?

    Thanks.

  2. #2
    Join Date
    Nov 2008
    Location
    Niagara Falls, Canada
    Posts
    350
    Figured it out. Just needed #main-navigation ul li.current-menu-ancestor > a { background: #000; } (was missing the >)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles