Site logo

[Support request] Center logo in nav bar, menu items flex: space-around, mobile too. no hamburger

Home Forums Support [Support request] Center logo in nav bar, menu items flex: space-around, mobile too. no hamburger

Home Forums Support Center logo in nav bar, menu items flex: space-around, mobile too. no hamburger

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2573521
    Brad

    Center logo in nav bar, menu items flex: space-around, mobile too. no hamburger menu

    _________

    Watched and followed your guys tutorial below.

    GeneratePress
    https://docs.generatepress.com/article/centering-logo-navigation/

    YouTube
    https://youtu.be/P9pCPK5DtRk

    I’m attempting to just change the menu items to flex: space-around or justify-content: space-around? I don’t want the menu items pushed far float left / pushed far float right.

    Any ideas? Sincere thanks for your assistance. Url in private section.

    #2573525
    Fernando
    Customer Support

    Hi Brad,

    For clarity, can you provide a bit of a sketch of how you want the menu items to look like?

    #2573533
    Brad
    #2573537
    Brad
    #2573562
    Fernando
    Customer Support

    Remove this code first:

    .main-navigation ul li:nth-child(3) {
            margin-left: auto;
        }

    Then, try adding this:

    .site-header .nav-align-center .main-nav>ul {
        justify-content: space-between;
        margin-left: 100px;
        margin-right: 100px;
    }

    This setup will likely only work on bigger screens though.

    Smaller screens will make the logo appear on top of a menu item.

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