Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to limit table width and wrap text in wpDataTables

Say your course table has only four columns, but the Description column holds two or three sentences per row. By default, wpDataTables prints each cell on one line, so the table grows wider than your page. With Limit table width the table keeps the width of the page, and with word wrap the long text breaks into several lines. You can set this with Tabella AI or in the Display tab.

How do I fit a table to the page with Tabella AI?

Open the table, click Ask Tabella AI and ask for the layout you want, one change per message.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Ask Tabella AI. Click Ask Tabella AI and type, for example: Limit the table width to the page width. Then, in a new message: Turn on word wrap.
  3. Check and save. Tabella AI lists what it changed. Click Save Changes, or Undo table changes to go back.

How do I limit the table width and wrap text in the table settings?

Turn on Limit table width in the Display tab, turn on word wrap below it and save the table.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Open the Display tab. In the table settings above the preview, click Display.
  3. Limit the width. Turn on Limit table width (Limit table width to page width). The Word wrap setting appears next to it, and Scrollable is hidden.
  4. Wrap the text. Turn on Word wrap (Wrap words to newlines).
  5. Save the table. Click Save Changes.
The Display tab of a wpDataTables table with Limit table width and Word wrap turned on
Fitting a table to the page: (1) the Display tab, (2) Limit table width, (3) Word wrap.

With only Limit table width on, text that doesn’t fit is cut off with “…”. Word wrap shows the whole text and makes the rows taller.

Limit table width and Scrollable can’t be on at the same time: when one is on, the other is hidden. If you don’t see Limit table width, turn off Scrollable first.

How do I set the width of a column?

Open the column settings and enter the width in the Display tab. The width setting shows only when Limit table width is on.

  1. Open the column settings. In the table preview, click the settings icon in the column header.
  2. Enter the width. In the Display tab, enter the Column width as a percentage, for example 40%, or in pixels, for example 200. You don’t need to type px.
  3. Save the table. Click Save Changes.

A wide Description column and narrow number columns usually read best. Columns without a width share the space that is left.

What should I remember about table layout and word wrap?

Ask Tabella AI, or turn on Limit table width in the Display tab, to keep a table within the page, and turn on Word wrap so long text breaks into lines instead of being cut off. Column widths in percent or pixels are available only with Limit table width on, and Scrollable is the alternative for tables with many columns.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box