Title: column width
Last modified: August 21, 2016

---

# column width

 *  Resolved [deepprod](https://wordpress.org/support/users/deepprod/)
 * (@deepprod)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/)
 * Hi,
 * How to change the column width is explained well in the FAQ section. So would
   there be any reason why the writing below does not seem to have any impact on
   my (too wide) colummns?
 * .tablepress-id-1 .column-2 {
    padding: 2px; }
 * Best regards,
 * Michael
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944771)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * It might be possible that your theme is setting the padding with a high priority.
   
   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 [deepprod](https://wordpress.org/support/users/deepprod/)
 * (@deepprod)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944772)
 * Hi,
 * Absolutely:
 * [http://www.deepproductguide.com/?page_id=20](http://www.deepproductguide.com/?page_id=20)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944774)
 * Hi,
 * thanks for the link.
    Your current “Custom CSS”
 *     ```
       .tablepress-id-2 .column-2 {
       	padding: .5px;
       }
       ```
   
 * will target table 2, but the table on that page is table 1. That’s why you are
   not seeing anything there.
 * Now, why exactly do you want to reduce the padding here? What are you actually
   trying to achieve or what’s bothering you about the current styling?
 * Regards,
    Tobias
 *  Thread Starter [deepprod](https://wordpress.org/support/users/deepprod/)
 * (@deepprod)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944798)
 * Hi,
 * Thanks for noticing that the ID was wrong, but this was only because I have played
   around with it. If you go to the webpage now, I think it is more clear why I 
   would like to narrow column 2 down to be more suiteable to the text in the cell.
   Is it related to a fixed width of the hole table in itself or maybe that the 
   text is not centered in the cells?
 * Br
 * Michael
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944850)
 * Hi Michael,
 * ok, so what you actually want is to reduce the width of the table. Now, as you
   are using the DataTables JS features, you’ll have to actually reduce the width
   of the wrapping container around the table.
    Please try this “Custom CSS”:
 *     ```
       #tablepress-1_wrapper {
         width: 400px;
       }
       ```
   
 * Additionally to that, you can use the CSS to change the column widths (from the
   TablePress FAQ page). There’s not need to change the padding, however.
 * Regards,
    Tobias
 *  Thread Starter [deepprod](https://wordpress.org/support/users/deepprod/)
 * (@deepprod)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944852)
 * Very nice, thank you.
 * Br.
 * Michael
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944858)
 * 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](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘column width’ 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/)
 * [column-size](https://wordpress.org/support/topic-tag/column-size/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/column-width-17/#post-4944858)
 * Status: resolved