Site logo

[Resolved] Mega Menu

Home Forums Support [Resolved] Mega Menu

Home Forums Support Mega Menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1569676
    S

    Hello,

    We’re trying out the simple Mega Menu CSS shown here: https://docs.generatepress.com/article/building-simple-mega-menu/,

    It works pretty well when the page is scrolled to the bottom once once you scroll down and the menu stays at the top, the mega menu changes to the full width. Would like it to be constrained like it is when the page is at the top.

    Sort of the opposite of this thread (they wanted full width at all times).
    https://generatepress.com/forums/topic/set-up-mega-menu-width/

    Any ideas?

    #1569763
    Elvin
    Staff
    Customer Support

    Hi,

    Try adding this CSS:

    nav#sticky-navigation ul#menu-mainmenu {
        position: relative;
    }

    This should constrain the absolute positioned sub-menus to the navbar width.

    #1570252
    S

    Awesome!

    #1570981
    Elvin
    Staff
    Customer Support

    I believe this is resolved? Feel free to open up a new topic if you need further help. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.