Match color of nav bar link item to sub menu link

  • Author
    Posts
  • #1270974

    ctvr00
    Member

    hi there
    ok on my site i have the nav bar links changing to green wen hovered over or selected and i am using drop down menus(sub menus).my question is – is there any way that when i select a sub menu item link that the parent nav bar link above would stay green , just to help the user remember where they are ?

    Thanks jenny

    The blog I need help with is suemoss105.wordpress.com.

    #1271192

    I think this will do it. Try it out to make sure it does what you’re thinking of:

    #nav .current-page-ancestor > a {
    	color: #a3cc00;
    }
    #1271234

    ctvr00
    Member

    hi designsimply

    it worked a treat thank you very much :)

    #1271243

    Awesome!

The topic ‘Match color of nav bar link item to sub menu link’ is closed to new replies.