Title: Center navigation menu, Patchwork theme
Last modified: August 20, 2016

---

# Center navigation menu, Patchwork theme

 *  [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/)
 * Hey guys,
    Does anybody know how to center the navigation menu? I’m using a child
   theme, and I don’t want to hard-code anything (like adding a number to “left”
   or margins).
 * Here’s the site: [http://www.primas2day.com/](http://www.primas2day.com/)
 * Any help will be greatly appreciated (-8

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166825)
 * Are you certain menu items won’t change name, be removed or added?
 *  Thread Starter [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166826)
 * No, I’m not certain, so I want to keep the whole thing as flexible as possible
   🙂
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166828)
 * If you’re not certain, you can’t have a centred menu.
 *  Thread Starter [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166830)
 * ok, I’m not sure I’m following you on this, could you please elaborate?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166832)
 * Are you familiar with [CSS block elements](http://www.webdesignfromscratch.com/html-css/css-block-and-inline/)?
   
   To [center a block element](http://www.w3.org/Style/Examples/007/center.en.html),
   you need to add a width.
 *  Thread Starter [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166834)
 * sure, but say I’ll add or remove one menu item now and then, so that the navigation
   menu might contain 3-5 items.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166835)
 * If the menu has 3 items and you have a width wide enough for 5, the menu will
   be off-set from the center.
 *  Thread Starter [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166836)
 * Right, ok, so that pretty much means that I will have to hardcode something 🙂
 * Say I have four menu items, how do I go about centering the navigation menu then?
 * BTW, thanks for taking the time, Andrew.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166838)
 * > Say I have four menu items, how do I go about centering the navigation menu
   > then?
 * Look at the resource referenced above, “To center a block element”. You need 
   to add a `margin: 0 auto;` and a `width:` to the exact width of all menu items.
   Try adding this to your `<ul>` element in the Child Theme style.css file.
 *  Thread Starter [primHel](https://wordpress.org/support/users/primhel/)
 * (@primhel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166839)
 * Thanks

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Center navigation menu, Patchwork theme’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/patchwork/1.3/screenshot.png)
 * Patchwork
 * [Support Threads](https://wordpress.org/support/theme/patchwork/)
 * [Active Topics](https://wordpress.org/support/theme/patchwork/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/patchwork/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/patchwork/reviews/)

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)

 * 10 replies
 * 2 participants
 * Last reply from: [primHel](https://wordpress.org/support/users/primhel/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/center-navigation-menu-patchwork-theme/#post-3166839)
 * Status: not resolved