Title: Table not Centering, even after adding CSS code
Last modified: August 30, 2016

---

# Table not Centering, even after adding CSS code

 *  Resolved [capefox](https://wordpress.org/support/users/capefoxx/)
 * (@capefoxx)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/table-not-centering-even-after-adding-css-code/)
 * To center a table, I added the code supplied by TablePress:
 * .tablepress-id-3 {
    width: auto; margin: 0 auto 1em; }
 * My table ID is: [table id=3 /]
 * I saved the settings and updated my post but the table is still not center-aligned.
   I also tried removing the “-id-3” part in order to apply the “center” setting
   to all tables but that didn’t work either.
 * So, **how can I get my tables to align cenrer? **
 * Here you can view the post mentioned above:
    [http://t-shirts.abouttestosterone.net/supreme-t-shirt-mint/](http://t-shirts.abouttestosterone.net/supreme-t-shirt-mint/)
 * Thank you!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/table-not-centering-even-after-adding-css-code/#post-6451896)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Technically, the table is centered, but the images in your table are too wide
   for the table to fit into the content area of your theme.
    You will either have
   to remove columns (i.e. move image to the next row), make the images smaller,
   or increase the content width in your theme.
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Table not Centering, even after adding CSS code’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/table-not-centering-even-after-adding-css-code/#post-6451896)
 * Status: resolved