Title: Table alignment issues
Last modified: August 31, 2016

---

# Table alignment issues

 *  Resolved [goodroads](https://wordpress.org/support/users/goodroads/)
 * (@goodroads)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/)
 * Hello,
 * I saw the multiple posts about centering the table but none of the options are
   working for me on either of my sites:
 * [http://www.xoluxurywheels.com/inventory/](http://www.xoluxurywheels.com/inventory/)
   
   [http://www.tuffwheels.com/inventory/](http://www.tuffwheels.com/inventory/)
 * I’ve tried both of the below but it wont work
 * #content .tablepress-id-1 {
    width: auto; margin: 0 auto 1em; }
 * .tablepress-id-1 {
    width: auto; margin: 0 auto 1em; }
 * Additionally, the second table (Tuff Wheels) is changing view on mobile… I want
   it to look like the first table (XO Luxury) when I Look at it on my iPhone… Both
   tables have the same exact settings selected.
 * Thank you for the help.
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208295)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The reason for this actually is a bug in the current version of the DataTables
   JS library. For some reason, the Horizontal Scrolling checkbox caused the table
   width to be wrong.
    To fix this, can you please turn off the Horizontal Scrolling
   checkbox on the table’s “Edit” screen?
 * That issue with the mobile view on the Tuff wheels site is caused by the CSS 
   code of that site’s theme. It contains CSS that changes the table view in the
   file /wp-content/themes/king/css/style.css
    You would have to remove that CSS
   in that file if you don’t want that view. The relevant CSS is
 *     ```
       table, thead, tbody, tfoot, tr, td, th {
       	display: block;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [goodroads](https://wordpress.org/support/users/goodroads/)
 * (@goodroads)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208320)
 * Thanks!
 * How can i modify the padding on just that one table?
 * I know the below will do it but it affects all tables
 * .dataTables_wrapper {
    clear: both; margin-bottom: 1em; padding: 0 120px; }
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208325)
 * Hi,
 * to only influence one table, you’d use the ID-based selector, like
 *     ```
       #tablepress-1_wrapper {
        ...
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [goodroads](https://wordpress.org/support/users/goodroads/)
 * (@goodroads)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208339)
 * Thank you!!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208365)
 * 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 5 replies - 1 through 5 (of 5 total)

The topic ‘Table alignment issues’ 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/)

## Tags

 * [Center table](https://wordpress.org/support/topic-tag/center-table/)
 * [mobile view](https://wordpress.org/support/topic-tag/mobile-view/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/table-alignment-issues-1/#post-7208365)
 * Status: resolved