Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS drop down menu colours on mouseover

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32003
    ljrobins
    Member

    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.

    #55629
    mwarren
    Member

    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.

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

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

    });

    #55555
    ljrobins
    Member

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

    #108751

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

    #108755
    therockstar
    Participant

    can we have screenshot or complete code snippet

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.