Title: Center dropdown menu
Last modified: August 20, 2016

---

# Center dropdown menu

 *  Resolved [tbowman](https://wordpress.org/support/users/tbowman/)
 * (@tbowman)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/center-dropdown-menu/)
 * I cannot figure out how to center my dropdown menu, ul#top-menu { float: center;}–
   does not work. It will either go left or right, how do I just get it center?
 * Tim

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

 *  [futurepocket](https://wordpress.org/support/users/futurepocket/)
 * (@futurepocket)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/center-dropdown-menu/#post-2194890)
 * There is no such thing as float:center… you’d have to assign margins/padding 
   to your menu to get it center. Try margin:auto (doesn’t work in IE8 though). 
   Your best bet would be to assign margin-left and margin-right and not to auto
   because it won’t work in internet explorer unless a doctype is declared.
 *  Thread Starter [tbowman](https://wordpress.org/support/users/tbowman/)
 * (@tbowman)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/center-dropdown-menu/#post-2194892)
 * Thanks, figured it out.

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

The topic ‘Center dropdown menu’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [tbowman](https://wordpress.org/support/users/tbowman/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/center-dropdown-menu/#post-2194892)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
