# Centering menu

**URL:** <https://colorlibsupport.com/t/centering-menu/17642>\
**Category:** Illdy\
**Created:** [August 17, 2017, 8:12pm UTC](https://colorlibsupport.com/t/centering-menu/17642 "2017-08-17T20:12:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amnesiia](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@amnesiia](https://colorlibsupport.com/u/amnesiia)\
**Post date:** [August 17, 2017, 8:12pm UTC](https://colorlibsupport.com/t/centering-menu/17642/1 "2017-08-17T20:12:27Z")

</div>

Hi,

I have recently increase the width of my content area to 80% on my website [http://www.bde.enscmu.uha.fr/](http://www.bde.enscmu.uha.fr/).

The consequence is that my menu moves below my logo. It’s not a problem as I even prefer this position.

But the annoying part is that the menu is not centered and the last item moved down.

What should I do to center the menu without moving the logo that should stay on the left (if possible) ?

Best Regards,  
amnesiia

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [August 17, 2017, 10:50pm UTC](https://colorlibsupport.com/t/centering-menu/17642/2 "2017-08-17T22:50:30Z")

</div>

Hey there

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 -\> Additional CSS

```auto
/*center logo and menu*/
#header > div.top-header > div > div > div.col-sm-4.col-xs-8 {
    width: 100%;
  text-align:center;
  margin-left: auto;
    margin-right: auto;
}
#header > div.top-header > div > div > div.col-sm-8.col-xs-4 {
    width: 100%;
}
nav.header-navigation {
    margin-left: 10%;
}

```

Best Regards,  
Support

---

<div class="post-metadata">

**Author:** ![amnesiia](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@amnesiia](https://colorlibsupport.com/u/amnesiia)\
**Post date:** [August 17, 2017, 10:59pm UTC](https://colorlibsupport.com/t/centering-menu/17642/3 "2017-08-17T22:59:38Z")

</div>

Hi,

I added the CSS code that you gave me but the menu is now on the right side of the page.

What should I change ?

Regards

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [August 18, 2017, 12:37am UTC](https://colorlibsupport.com/t/centering-menu/17642/4 "2017-08-18T00:37:54Z")

</div>

Hey there,  
I hope you’re doing well today

Change the magin-left to 5%

```auto
nav.header-navigation {
    margin-left: 5%;
}
}

```

Let me know.

Best Regards,  
Support

---

<div class="post-metadata">

**Author:** ![amnesiia](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@amnesiia](https://colorlibsupport.com/u/amnesiia)\
**Post date:** [August 18, 2017, 10:33am UTC](https://colorlibsupport.com/t/centering-menu/17642/5 "2017-08-18T10:33:41Z")

</div>

Hi,

Thanks for the quick answer but th menu stay on the right side of the page.

I don’t know what’s going on .

Regards,

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [August 18, 2017, 12:06pm UTC](https://colorlibsupport.com/t/centering-menu/17642/6 "2017-08-18T12:06:20Z")

</div>

Hello there,

Thanks for that information.

Please try adding this CSS code to move the menu to the left:

```auto
/*Move the menu to the left*/
#header .top-header .header-navigation {
    float: left;
}

```

Best Regards,  
Support

---

<div class="post-metadata">

**Author:** ![amnesiia](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@amnesiia](https://colorlibsupport.com/u/amnesiia)\
**Post date:** [August 18, 2017, 1:58pm UTC](https://colorlibsupport.com/t/centering-menu/17642/7 "2017-08-18T13:58:39Z")

</div>

Hi,

I already tried this code but the menu is still not centered.

Can it be related to the fact that I have one item in the menu that is displayed only when members are connected ?

Best regards,
