Title: Center something
Last modified: August 20, 2016

---

# Center something

 *  [makta112](https://wordpress.org/support/users/makta112/)
 * (@makta112)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/center-something/)
 * Hello
 * I’m trying to center the top banner on my site.
 * But I’m unable to do so.
 * Here’s the code I’m using now:
 *     ```
       #Topad {
           position: absolute;
           top: 7em;
       }
       ```
   
 * I’ve tried all these lines:
 *     ```
       #Topad {margin-left: auto;
       margin-right: auto;}
       ```
   
 * In the HTML too:
 * <div align=”center”>…</div>
 * <center>…</center>
 * My site: [http://geimaku.com](http://geimaku.com)
 * Nothing seems to work. Help, please.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 10 months ago](https://wordpress.org/support/topic/center-something/#post-2938446)
 * You cannot centre while positioned absolute (unless you manually do it for a 
   certain window width)

Viewing 1 replies (of 1 total)

The topic ‘Center something’ is closed to new replies.

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [left](https://wordpress.org/support/topic-tag/left/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [right](https://wordpress.org/support/topic-tag/right/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/center-something/#post-2938446)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
