Forums

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

Home Forums Design Dissapearing drop down menu

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #274607
    zebyte
    Participant

    Hi,

    Im new with css coding and I am trying to do a dissapearing drop down menu with css.
    below is my coding for css & html file. somehow the 2nd list menu is not dissapearing.
    I wish to make the 2nd menu not there and when the cursor is hovering on the 1st menu only then it will appear. please help. thank you

    https://codepen.io/anon/pen/QBMqGO

    #274615
    Paulie_D
    Member

    I’d start by fixing your HTML…you close the parent li too soon.

    This might help a little….keep at it…you’ll get there.

    https://codepen.io/Paulie-D/pen/mjMLea

    #274616
    zebyte
    Participant

    thank you very much. :)

    #274617
    zebyte
    Participant

    another question.

    why is the 4 main menu not in the same row? did i miss something. I believe this is probably due to the sub menu coding. but im not sure where to tweak.

    #274733
    grimslayer
    Participant

    If you mean the issue where the children ul li elements are not inline and instead are at a diaganol angle change this bit of code from:

    #topnav ul li:hover ul li {
    display: block;
    }

    to:

    #topnav ul li:hover ul li {
    display: inline-block;
    }

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