# Centralize 'navigation'

**URL:** <https://colorlibsupport.com/t/centralize-navigation/7863>\
**Category:** Sparkling\
**Created:** [August 13, 2015, 9:43pm UTC](https://colorlibsupport.com/t/centralize-navigation/7863 "2015-08-13T21:43:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcartell](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mcartell](https://colorlibsupport.com/u/mcartell)\
**Post date:** [August 13, 2015, 9:43pm UTC](https://colorlibsupport.com/t/centralize-navigation/7863/1 "2015-08-13T21:43:23Z")

</div>

Hello, I made a small change in the header.php file and now I want to centralize the ‘navigation’.

How did:

As I want:

I can switch to the ‘left’ and ‘right’ with ‘float’ tag, but it does not accept ‘center’  
It has some way to centralize the ‘navigation’?

---

<div class="post-metadata">

**Author:** ![movin](https://colorlibsupport.com/user_avatar/colorlibsupport.com/movin/32/10922_2.png) [@movin](https://colorlibsupport.com/u/movin)\
**Post date:** [August 23, 2015, 2:57pm UTC](https://colorlibsupport.com/t/centralize-navigation/7863/2 "2015-08-23T14:57:26Z")

</div>

Hi @mcartell,

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

The float CSS property doesn’t accept CSS value. See more information about it here [http://www.w3schools.com/cssref/pr\_class\_float.asp](http://www.w3schools.com/cssref/pr_class_float.asp)

You can try centralizing the ‘navigation’ by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -\> Apperance -\> Theme Options -\> Other -\> Custom CSS

```auto
#masthead .nav.navbar-nav {
  float: none;
  margin: 0 auto;
  width: 550px;
}

```

Change the width in the above code according to the width of your navigation.

If it doesn’t help you then please share your site URL so that i can troubleshoot it.

Best Regards,  
Movin
