All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

dropdown parent hover

  • # April 23, 2013 at 12:39 pm

    hey all! first post in this great community! i haven’t hand coded sites in forever, so i’m super rusty and probably have terrible markup, but hoping to get some help and learn for cleaner coding. so thanks in advance!

    my question is, i have this rollover i have been working on and was wondering how to make the parent hover stay active.

    here’s what i’m working on. thanks!

    http://cdpn.io/pgbcn

    # April 23, 2013 at 2:36 pm

    Try changing the background of the li on hover instead of the a.

    # April 23, 2013 at 2:46 pm

    > Try changing the background of the li on hover instead of the a.

    Yeap, change the selector on line 49 to this:

    #menu ul li.divider:hover

Viewing 3 posts - 1 through 3 (of 3 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