Title: Setting custom column width doesn&#8217;t work.
Last modified: September 24, 2022

---

# Setting custom column width doesn’t work.

 *  Resolved [alecdb](https://wordpress.org/support/users/alecdb/)
 * (@alecdb)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/)
 * I’m attempting to change the width of a column, using the instructions here: 
   [https://tablepress.org/faq/column-widths/](https://tablepress.org/faq/column-widths/),
   but it is having no effect. Is this code out-of-date? I am only able to control
   padding, but not the total width of the table or the width of the individual 
   columns.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16039570)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * That code is still the recommend way to change column widths. Note that things
   get tricky once a table’s width reaches the width of its container, as the browser
   does then not really have “room” to work with. 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 [alecdb](https://wordpress.org/support/users/alecdb/)
 * (@alecdb)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16045524)
 * Hello,
 * Thank you for your reply, and sorry for my delay on my response. The actual table
   data is confidential so I’ve gone ahead and made a copy with dummy data that 
   will show the issue. [https://fhrwanda.org/table-test/](https://fhrwanda.org/table-test/)
 * And I’m definitely hitting this problem; my hope was that the horizontal scrolling
   feature would allow the table to be wider than the page… any advice?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16047421)
 * Hi,
 * thanks for the link!
 * Just as I thought, your columns are already too wide (making it necessary to 
   use horizontal scrolling). Therefore, the `width: ..px;` CSS property is not 
   sufficient to increase the width of a column. Instead, you should also add the`
   min-width` property, with the same value, i.e.
 *     ```
       width: ..px;
       min-width: ..px;
       ```
   
 * wherever you want to increase the column widths for this table.
 * Regards,
    Tobias
 *  Thread Starter [alecdb](https://wordpress.org/support/users/alecdb/)
 * (@alecdb)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16049682)
 * Problem solved! Thank you. Great plugin.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16050091)
 * 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 [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

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

The topic ‘Setting custom column width doesn’t work.’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/setting-custom-column-width-doesnt-work/#post-16050091)
 * Status: resolved