The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

a:active help

  • # November 20, 2012 at 10:33 pm

    Curious if someone can see if I’m doing something wrong here or if I’m just thinking about this the wrong way.

    What the company I’m working with wants is the links to stay “active” (the blue background) while one of the sections is highlighted. Basically it’s a series of boxes that are hidden or shown using javascript (don’t hurt me too bad on how the javascript is coded – I didn’t have a hand in that part :P)

    I’ve tried css methods but nothing is functioning. Maybe I’m just thinking about it wrong and I should be doing using jQuery to activate them?

    # November 20, 2012 at 10:57 pm

    a:active afaik only works on click before returning to the default state. If you want there to be an active state then add a class to the “active” link after clicking it.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed