[Resolved] main Menu centered

Home Forums Support [Resolved] main Menu centered

Home Forums Support main Menu centered

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1500951
    Torsten

    Hi,
    I,ve set the content area to a max-width of 1300px, centered.
    How could I get the primary menu right aligned with the content area and the secondary menu left aligned?
    I probably need to give the menus some additional padding in px…
    best regards,
    Torsten

    #1500969
    David
    Staff
    Customer Support

    Hi there,

    you have some custom CSS that is affecting the position/padding of the navigation.
    Without that CSS, you can simply set the Customizer > Layout > Primary Navigation –> Inner Navigation Width to Contained:

    https://docs.generatepress.com/article/primary-navigation-layout-overview/

    But its not going to work with additional CSS you have added.

    #1501185
    Torsten

    Hi David,
    could you take another look at the website?
    I deleted all custom css and used your settings as indicated.
    Only now the header bar background is not running full width, nor the secondary menu (on desktop).
    Can you help,
    best,
    Torsten

    #1501207
    Torsten

    and I can’t set a right-margin for the primary menu, I tried

    .main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a {
        padding-right: 20px;
    	}

    best,
    Torsten

    sorry, it’s working.

    #1501613
    Leo
    Staff
    Customer Support

    Only now the header bar background is not running full width, nor the secondary menu (on desktop).

    Is the navigation width set to full for both the primary and secondary navigation?
    https://docs.generatepress.com/article/navigation-layout/#navigation-width
    https://docs.generatepress.com/article/secondary-navigation-layout/#navigation-width

    #1502123
    Torsten

    lovely,
    thanks a lot.
    best,
    Torsten

    #1502638
    Leo
    Staff
    Customer Support

    No problem 🙂

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