The main menu: how to center the menu and its items ?

Hello,

I downloaded recently your theme and found it really awesome! :wink:

Now, I’m creating a personal blog and have some questions : Could you help me please to center my main menu and its items ?

I replaced the main menu above the logo image and deleted the <div> with the search bar. I would like to get the main menu centered but it is all time at the left regardless changes that I do in CSS… My blog is still in local but you can see what I’m talking about in attached files.

Thank you in advance for all help you can me provide ! :slight_smile:

Hi @vgolovnya,

I hope you are well today and thank you for your question.

You can try achieving this by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Activello Options -> Other -> Custom CSS


@media (min-width: 767px){
.navbar-default .nav-search {
    display: none;
}
.navbar-default .navbar-collapse {
    float: none;
    margin: 0 auto;
    display: table !important;
}
}

Best Regards,
Movin

Hi @Movin,

Thank you for a quick response. It works very well and I have ! Thank you again :wink:

Have a good day!

You are most welcome here :slight_smile: