• Resolved sehernan

    (@sehernan)


    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

    (@tobiasbg)

    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

    (@sehernan)

    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

    (@tobiasbg)

    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.