Title: Table Header Row Width
Last modified: May 11, 2023

---

# Table Header Row Width

 *  Resolved [katiewsi](https://wordpress.org/support/users/katiewsi/)
 * (@katiewsi)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/)
 * Hi all,
 * I have three tables under an individual tab, however the first table works fine
   but the other two the header width has shrunk. Why is this? Tried fixing with
   CSS but nothing worked.
 * Can someone help me please?
 * Many thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftable-header-row-width%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729389)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This can happen when “Horizontal Scrolling” is used with a table that is then
   shown in a tab.
   The reason for this problem is that, with tabs, only the first
   table is shown when the page is loaded. The tables on the other tabs are hidden.
   This however means that the browser can not calculate things like column widths
   for these tables (because hidden elements don’t have a width, so to say). This
   results in the widths to look wrong.
 * For a possible solution, please see [https://wordpress.org/support/topic/tables-within-elementor-components-tabs/](https://wordpress.org/support/topic/tables-within-elementor-components-tabs/)
 * Regards,
   Tobias
 *  Thread Starter [katiewsi](https://wordpress.org/support/users/katiewsi/)
 * (@katiewsi)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729406)
 * Hi Tobias,
 * Thanks for your speedy reply! I have tried all of those JS instances and it still
   doesn’t appear to be working 🙁
 * Thanks,
   Katie
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729460)
 * Hi Katie,
 * Can you please try again after removing the first line of that code? It’s causing
   an error here (due to the code loading order), but shouldn’t actually be needed.
 * If that still doesn’t help, I suggest that you consider getting a [TablePress premium license](https://tablepress.org/premium/).
   As part of the priority email support that is included, I’ll then be able to 
   take a deeper look at this on your specific site.
 * Best wishes,
   Tobias
 *  Thread Starter [katiewsi](https://wordpress.org/support/users/katiewsi/)
 * (@katiewsi)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729670)
 * Hi Tobias,
 * What would the code be, as there’s multiple on that other ticket…
 * Thanks a lot,
   Katie
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729680)
 * H,
 * please try this: [https://wordpress.org/support/topic/tables-within-elementor-components-tabs/#post-16528272](https://wordpress.org/support/topic/tables-within-elementor-components-tabs/#post-16528272)
 * In your case, it should be fine to also remove the line
 *     ```wp-block-code
       $('.elementor-tab-content .dataTable').DataTable({retrieve:true}).columns.adjust().draw();
       ```
   
 * from the code.
 * Regards,
   Tobias

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

The topic ‘Table Header Row 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/table-header-row-width/#post-16729680)
 * Status: resolved