Title: Center FullWidth Div
Last modified: August 31, 2016

---

# Center FullWidth Div

 *  Resolved [unechienneandalouse](https://wordpress.org/support/users/unechienneandalouse/)
 * (@unechienneandalouse)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/center-fullwidth-div/)
 * I’m having a hard time figuring out why I can’t place my fullwidth posts in the
   centre of the page. Here’s a [ link ](http://www.anandalusianbitch.com/explore-espana-frigiliana/)
   to a sample post in my blog:
 * This is what I’ve been trying to use but it unfortunately doesn’t work
 * div#main.fullwidth {
    width: 75%; display: block; margin-left: auto; margin-right:
   auto; }
 * I hope this is not a silly question as I’m a newbie in coding and stuff. Thanks.

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

 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/center-fullwidth-div/#post-7072982)
 * I see this rule
 *     ```
       #main.fullwidth { width:100% }
       ```
   
 * which is overwritten by yours, if you remove the
 * widht:75%
 * it works, no?
 *  Thread Starter [unechienneandalouse](https://wordpress.org/support/users/unechienneandalouse/)
 * (@unechienneandalouse)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/center-fullwidth-div/#post-7072994)
 * Thanks for the help!
 * The creator of my theme gave me a code that actually worked:
 * [@media](https://wordpress.org/support/users/media/) only screen and (min-width:
   1170px) {
    .single #main.fullwidth .post-entry { max-width: 800px; margin-left:
   auto; margin-right: auto; }
 *  .single #main.fullwidth .post-img {
    max-width: 800px; margin-left: auto; margin-
   right: auto; }
 *  .single #main.fullwidth .post {
    max-width: 800px; margin-left: auto; margin-
   right: auto; } }
 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/center-fullwidth-div/#post-7072997)
 * super!

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

The topic ‘Center FullWidth Div’ is closed to new replies.

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [fullwidth](https://wordpress.org/support/topic-tag/fullwidth/)
 * [horizontal](https://wordpress.org/support/topic-tag/horizontal/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/center-fullwidth-div/#post-7072997)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
