how to center the menu header

Hi gurus!

I am needing to center the menu in the header but not sure how to do that. The site is gosendmeglobal.org.  anyome know how? Thanks in advance as always!

Brad

2,870 Views
Message 1 of 6
Report
5 REPLIES 5
Square

Hi @BradRickey

The easiest way to center your menu is to update your theme to a theme that offers this setting. One that comes to mind is CleanLines. You can update your theme by clicking on Theme>Change Theme. You can also preview the theme to see how your site will look before actually applying it to your site. 

2,855 Views
Message 4 of 6
Report

Thank you for the advice. I do know how to use HTML and CSS but not able to figure out where to make those changes.

2,846 Views
Message 4 of 6
Report
Square

We have some themes that already have the navigation centered, although @PaulMathews or @seicolegwr might have some ideas on centering the list items in the unordered list of menu items.

2,839 Views
Message 7 of 6
Report

@BradRickey @Adam You'll need to modify the css for the logo and navigation menu. As @Adam says, your best bet is to simply switch to a theme that already has a centered logo if you don't want to deal with code. In this particular case, if you center the logo, you'll want to stack it above the navigator given the number of navigation menu items. To relocate the logo to the top center of the header bar and move the navigation menu down a bit to accommodate this, in the Site Editor, click Settings then SEO in the left-hand sidebar then scroll down to the "Header Code" input box and add the following code:

<style>

/* Change position of (fixed 88px width) logo to top center */
.dusk-header .logo {
    position: absolute;
    top: 10px;
    left: calc(50% - 44px);
    margin: 0;
    padding: 0;
}

/* Move navigation menu and utility items down a bit to accommodate relocated logo */
.desktop-nav, .site-utils {
position:relative;
top:20px;
}

</style>

Note: if the logo doesn't center itself, change the "left" logo attribute from calc(50% - 44px) to calc(~"50% - 44px").

Again, you'll likely find better results if you simply switch to a theme that already has the logo centered and you won't have to deal with custom coding (which Weebly support will not be able to provide assistance with down the road should anything go wrong).

2,835 Views
Message 7 of 6
Report

Perfect! Thank you!!

2,819 Views
Message 7 of 6
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.