Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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/ 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

    (@nichlas)

    Thank you!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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.