Forums

  • # September 15, 2012 at 9:49 pm

    I created a hover effect for my nav links. I want the hover background color to stay after the user has clicked a particular nav link, so it will show them the site area they are in. This site does that, as do a number of others. How is it done?

    Thanks for any help!

    -Margaret

    # September 15, 2012 at 11:47 pm

    Also, if you’re using WordPress you can just target the body class/ID to set the active class.

    Example:
    `body.page-id-1 .active {color: red;}`

    # November 24, 2012 at 3:21 pm

    Thank you both :-)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag