Forums

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

Home Forums CSS Display submenu on the right side of the main menu

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

    Hello,
    I’m trying to make a submenu, sliding when mouse is over a menu element. I’ve got something like this: http://codepen.io/anon/pen/NdOqEP
    Is there any way, to make the submenu appear on the right side of the menu (like here: http://imgur.com/1rk7xtP)?

    Thanks in advance.

    #251307
    Beverleyh
    Participant

    You could try making the immediate submenu parent position:relative; and then absolutely position the submenu all the way to the left;

    position:absolute;
    left:100%;
    top:0;
    
    #251320
    ar.tux
    Participant

    Thanks, with your answer I managed to do something like this: https://codepen.io/anon/pen/vgVeYW
    so, the submenu appears where I want it to, but when the mouse leaves the menu (green background), then the submenu disappears

    #251325
    Beverleyh
    Participant

    Looks like a z-index issue. Try increasing it for the submenu.

    #251333
    ar.tux
    Participant

    It works! Thank you very much :)

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