Site logo

Archived topic

Mobile Menu Position

5 replies · Started by David on June 18, 2019

Viewing posts 1–6 of 6

Try this CSS - it would also work as a replacement to the other CSS if the Navigation as Header option is selected ( where going to update the Centered logo documentation to cover this soon):

.navigation-branding {
    position: absolute;
    left: 50%;
    -webkit-transform: translatex(-50%);
    transform: translatex(-50%);
    margin-left: 0;
    z-index: 1;
}

.main-navigation .menu-item-separator a {
    font-size: 0;
    background: transparent !important;
}

.main-navigation:not(.slideout-navigation) .main-nav {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left: auto;
    margin-right: auto;
}

.main-navigation ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.main-navigation ul li.menu-item-separator {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

Perfect, Thanks David

Glad to be of help

This archived topic is closed to new replies.