Title: table width get&#8217;s set in table element
Last modified: July 8, 2020

---

# table width get’s set in table element

 *  Resolved [mcvlot](https://wordpress.org/support/users/mcvlot/)
 * (@mcvlot)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/)
 * Dear experts,
 * For some reason recently a wordpress table get forced to 934 pixels width (which
   is close to the width of the theme). Since this is element level CSS it is not
   possible to override it. Does the plugin generate this and how can I prevent 
   that?
 * Here the table element that it generates:
 * > <table id=”tablepress-3″ class=”tablepress tablepress-id-3 dataTable no-footer”
   > role=”grid” style=”width: 934px;”>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftable-width-gets-set-in-table-element%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mcvlot](https://wordpress.org/support/users/mcvlot/)
 * (@mcvlot)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/#post-13097158)
 * Sorry all, fixed this myself, but still unclear why this problem emerged.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/#post-13099629)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This is the calculated with, using JavaScript. You should be able to set the 
   width with CSS, and the JS value will take that into account.
 * But good to hear that you found a solution already! 🙂
 * Best wishes,
    Tobias
 *  Thread Starter [mcvlot](https://wordpress.org/support/users/mcvlot/)
 * (@mcvlot)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/#post-13099794)
 * Thanks Tobias – I looked at the debug window of chrome which does not show the
   source code but includes JS mods of the style attributes. It is also clear toi
   me why it large suddenly became so large. Thanks!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/#post-13100173)
 * Hi,
 * no problem! 🙂
 * Best wishes,
    Tobias

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

The topic ‘table width get’s set in table element’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/table-width-gets-set-in-table-element/#post-13100173)
 * Status: resolved