Grow your CSS skills. Land your dream job.

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.

*May or may not contain any actual "CSS" or "Tricks".