Title: Change column width
Last modified: August 22, 2016

---

# Change column width

 *  Resolved [emilysmithNGN](https://wordpress.org/support/users/emilysmithngn/)
 * (@emilysmithngn)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/change-column-width-4/)
 * Hi, I’m trying to change the column width in tablepress tables using this code:`.
   tablepress-id-3 .column-1 {
    width: 100px !important; }
 * .tablepress-id-3 .column-2 {
    width: 115px !important; }`
 * This works fine for the first two columns, but when I add the particular size
   for the third column, all of the columns go back to how they were before.
 * You can see the specific table I’m trying to adjust at [http://herpesproductsthatwork.com/16042/](http://herpesproductsthatwork.com/16042/)
 * Thanks!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/change-column-width-4/#post-5892009)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * You might have to tell the table to not stretch to the full width, e.g. with
 *     ```
       .content .tablepress-id-3 {
         width: auto;
       }
       ```
   
 * (In fact, that by itself might already be good enough for your purpose, so that
   you won’t even have to set individual column widths.)
 * Regards,
    Tobias
 *  Thread Starter [emilysmithNGN](https://wordpress.org/support/users/emilysmithngn/)
 * (@emilysmithngn)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/change-column-width-4/#post-5892017)
 * This worked perfectly! Thanks 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/change-column-width-4/#post-5892049)
 * 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 3 replies - 1 through 3 (of 3 total)

The topic ‘Change 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/)

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