Treehouse: Grow your CSS skills. Land your dream job.

drop down menu colours on mouseover

  • # March 14, 2011 at 1:38 pm

    I have made a drop down menu where the top colour is grey. On mouseover the top image changes colour and the drop down menu appears. I want the top colour to stay the same as the mouseover while the drop down menu is there but when you click off the menu the top image reverts back to grey.

    Can anyone help please.

    # March 14, 2011 at 3:07 pm

    if you’re using jquery, then in the statement where you add the hover state to your sub menu, just also add it to the top level as well.

    $(top level).hover(function(){

    $(top level).css( blah blah);


    # March 15, 2011 at 5:43 am

    We are using normal css. We are looking for a simple javascript solution without jquery

    # August 30, 2012 at 4:03 am

    Hai can’t we do this without using javascript? by using css?

    # August 30, 2012 at 4:33 am

    can we have screenshot or complete code snippet

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

You must be logged in to reply to this topic.