Title: Width = 100%
Last modified: August 20, 2016

---

# Width = 100%

 *  Resolved [nichlas](https://wordpress.org/support/users/nichlas/)
 * (@nichlas)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/width-100-101/)
 * .tablepress is set to width in the standard plugin css files.
 * Is there any way to cancel this out without changing the default css file?
 * I want it to fit the table contents!
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/width-100-101/#post-3382105)
 * Hi Nichlas,
 * thanks for your question.
 * This is possible with some “Custom CSS” code. Please see the TablePress FAQ page
   at [http://tablepress.org/faq/](http://tablepress.org/faq/) for more information
   on this.
 * Depending on whether you are using the features of the DataTables JavaScript 
   library on your table, you can use the CSS code
 *     ```
       .tablepress {
         width: auto;
       }
       ```
   
 * or
 *     ```
       .dataTables_wrapper {
         width: auto;
       }
       ```
   
 * to change the width of all tables at once, or the code
 *     ```
       .tablepress-id-123 {
         width: auto;
       }
       ```
   
 * or
 *     ```
       .tablepress-id-123_wrapper {
         width: auto;
       }
       ```
   
 * to change the width of a single table (that with the ID 123 in this example).
 * Regards,
    Tobias
 *  Thread Starter [nichlas](https://wordpress.org/support/users/nichlas/)
 * (@nichlas)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/width-100-101/#post-3382110)
 * Thank you!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/width-100-101/#post-3382129)
 * Hi,
 * sure, no problem! You are very welcome!
 * Best wishes,
    Tobias

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

The topic ‘Width = 100%’ 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: [13 years, 3 months ago](https://wordpress.org/support/topic/width-100-101/#post-3382129)
 * Status: resolved