Title: Adjust Spacing Between Menu Items
Last modified: August 21, 2016

---

# Adjust Spacing Between Menu Items

 *  Resolved [cherylweb27](https://wordpress.org/support/users/cherylweb27/)
 * (@cherylweb27)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adjust-spacing-between-menu-items/)
 * Thanks in advance for your help!
 * How do I reduce the spacing between menu items, so the entire menu will fit on
   the same line? dpffredericksburg.com
 * (Specifically, the secondary menu area, which I’m using for main navigation.)
 * I’ve tried adding the following to the Custom CSS box, but nothing changed.
 *     ```
       #nav-second ul.sf-menu>li {
       width: 4%;
       }
       ```
   
 * I’m not very good at CSS, so any help would be greatly appreciated!
 * Thank you!

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

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adjust-spacing-between-menu-items/#post-4712659)
 *     ```
       #nav-second ul.sf-menu>li {
       width: 14.25%;
       }
       ```
   
 * That should do what you want. The reason nothing changed before is because you
   have this in your custom css box:
 * `define( 'WP_MEMORY_LIMIT', '64M' );`
 * That is not css and thus not the place to change your memory limit and is causing
   issues with the css. If you want to change you memory limit you have to add that
   to your wordpress config file.
 * Kadence Themes
 *  Thread Starter [cherylweb27](https://wordpress.org/support/users/cherylweb27/)
 * (@cherylweb27)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adjust-spacing-between-menu-items/#post-4712666)
 * Hooray!!! That worked perfectly! 🙂
 * Can’t remember why I put that other code in there, so hopefully it won’t mess
   anything up. 😉
 * Thanks so much for your help!!

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

 The topic ‘Adjust Spacing Between Menu Items’ is closed to new replies.

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

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [cherylweb27](https://wordpress.org/support/users/cherylweb27/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/adjust-spacing-between-menu-items/#post-4712666)
 * Status: resolved