Title: Centering the table
Last modified: August 22, 2016

---

# Centering the table

 *  Resolved [underdog_32](https://wordpress.org/support/users/underdog_32/)
 * (@underdog_32)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/)
 * Hi Tobias,
 * I’m trying to center a table in the middle of a page. The table is 4 columns,
   1 row. I’ve been on your sites FAQ page & used:
 * .tablepress-id-N {
    width: auto; margin: 0 auto 1em; }
 * When I used the code above, I changed the N to the number of the table. I put
   the code in the Custom CSS box under Plugin Options.
 * I found a thread where someone had a similar problem. You suggested the following
   code:
 * .tablepress-12_wrapper {
    width: auto; margin: 0 auto 1em !important; }
 * Still nothing.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388900)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [underdog_32](https://wordpress.org/support/users/underdog_32/)
 * (@underdog_32)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388913)
 * [http://www.brandontritten.com](http://www.brandontritten.com) – see the 4 icons
   towards the bottom.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388935)
 * Hi,
 * thanks for the link!
 * Technically, the table is actually centered on that page, and the CSS code works
   fine.
    The problem basically is that the content area on that page is not centered,
   because it has a reduced width, due to the used page template. The slider at 
   the top just creates the impression that the content area is bigger, as it has
   a bigger width.
 * To fix this, you will have to increase the content area of the page, e.g. by 
   trying a different page template on the page’s “Edit’ screen (if the theme offers
   them), like “Full width” or “One column”.
 * Regards,
    Tobias
 *  Thread Starter [underdog_32](https://wordpress.org/support/users/underdog_32/)
 * (@underdog_32)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388938)
 * Thank you Tobias!
 *  Thread Starter [underdog_32](https://wordpress.org/support/users/underdog_32/)
 * (@underdog_32)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388939)
 * .
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388942)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Centering the table’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/centering-the-table/#post-5388942)
 * Status: resolved