Title: table width and datatables javascript.
Last modified: December 1, 2017

---

# table width and datatables javascript.

 *  Resolved [sehernan](https://wordpress.org/support/users/sehernan/)
 * (@sehernan)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-width-and-datatables-javascript/)
 * Hello,
 * I have tried to change the table width with the css code:
 *     ```
       .tablepress-id-8 {
       	width: 200%;
       }
       ```
   
 * but, I need the horizontal scroll. The problem is that if I check to enable the
   DataTables Javascript library, this css code seems ignored.
 * Thanks for your help.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-width-and-datatables-javascript/#post-9742335)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * 200% width is not possible. To fix this issue with the horizontal scrolling, 
   please try
 *     ```
       .tablepress-id-8 {
       	width: 100% !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [sehernan](https://wordpress.org/support/users/sehernan/)
 * (@sehernan)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-width-and-datatables-javascript/#post-9742417)
 * Thanks for your answer.
 * Well, the table has some big cells, that is why I need to fix the width of the
   table and the cells.
    I have noticed that when the width is 200% the cells width
   are good, but I can’t scroll horizontally. Then, how could I fix the width of
   cells and get the behavior like when the table has many columns and in that case
   appear the horizontal scroll? Is this possible?
 * Thanks for your help.
 * (PD. Sorry about my English)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/table-width-and-datatables-javascript/#post-9742500)
 * Hi,
 * 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

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

The topic ‘table width and datatables javascript.’ 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/)

## Tags

 * [datatables](https://wordpress.org/support/topic-tag/datatables/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/table-width-and-datatables-javascript/#post-9742500)
 * Status: resolved