Enhance Content

31 Tables


See Tables and Textboxes in the Pressbooks User Guide.

Issues to Note

Styling tables can be a challenge when the CSS of a book overrides the HTML for individual chapters. For help with this issue, see Customizing your Exports with Custom Styles in the Pressbooks User Guide.

Formats affected



Work around


Table cells with more than one paragraph

The first paragraph in each cell will have no extra space between lines. All additional paragraphs in the same cell will have extra space between the lines and the text will be larger.

Go into the Text (HTML) editor and add a blank line after the opening <td> tag (this means pressing the [Enter] key twice) and saving the chapter while still in the Text (HTML) editor.

All formats

Table borders

After an update on December 21, 2018, borders were stripped out of many tables.

  1. To fix a specific table, select all cells in the table. Click the Tables icon in the WYSIWYG toolbar, and click under “Cell” click “Table cell properties.” Under “Class” select “Border.”
  2. To add a border around all table cells in your entire book, add the following to your Web, EPUB, and PDF Custom Styles (found under the Appearance tab in the Dashboard Menu):
    .front-matter td, .part td, .chapter td, .back-matter td, body#tinymce.wp-editor td {
    border: 1px solid;
    border-color: #373d3f; }
    .front-matter th, .part th, .chapter th, .back-matter th, body#tinymce.wp-editor th {
    border: 1px solid;
    border-color: #373d3f; }


Side bar textboxes

Sidebar textboxes that stretch between pages cause some text to become unreadable.

Avoid the use of long sidebar textboxes and check your PDF exports for this issue.


The below video is from the Pressbooks Video Tutorial Series.


Icon for the Creative Commons Attribution 4.0 International License

Tables by Lauri M. Aesoph is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book