Title: column widths
Last modified: October 9, 2016

---

# column widths

 *  Resolved [thewildcard](https://wordpress.org/support/users/thewildcard/)
 * (@thewildcard)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/column-widths-4/)
 * I tried padding 0. It doesn’t work. There is too much space between my columns
   and I need the table to be centered. the page is [http://www.wildcardcredit.com/credit-repair](http://www.wildcardcredit.com/credit-repair).
   The table is in the accordion module under higher interest rates.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/column-widths-4/#post-8267281)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Please revert those padding changes and then try this “Custom CSS”:
 *     ```
       .tablepress-id-5 {
       	width: auto!important;
       	margin: 0 auto 1em !important;
       }
       ```
   
 * You will basically just have to tell the browser to not stretch the table to 
   full width.
 * Regards,
    Tobias
 *  Thread Starter [thewildcard](https://wordpress.org/support/users/thewildcard/)
 * (@thewildcard)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/column-widths-4/#post-8268721)
 * Thank You. Works perfect!
 * How do I add a border to the left of column 1 and to the right of column 4. I
   tried the following under column 1: border-left: 2px border-color: #0000 and 
   border-style: solid
 * the result places borders around the entire cells in column 1 And the same goes
   for column 4 when I try to add a right border
 * In other words, I want to add a box column around the entire table.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/column-widths-4/#post-8271830)
 * Hi,
 * from what I can see, the best solution might be to not set these CSS properties
   individually, but in their “shorthand” format:
    `border-left: 2px solid #000000;`
   Can you maybe try that?
 * Regards,
    Tobias

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

The topic ‘column widths’ 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

 * [column width](https://wordpress.org/support/topic-tag/column-width/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/column-widths-4/#post-8271830)
 * Status: resolved