treehouse : what would you like to learn today?
Web Design Web Development iOS Development

a:active help

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

    http://www.insurancecareer.com/pros-and-cons/

    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?

  • 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.