Enhance Content

31 Tables

""

See Tables and Textboxes in the Pressbooks Userguide.

Issues to Note

  1. 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 Userguide.
  2. In the web book, table cells that contain more than one paragraph have inconsistent line spacing (see below). 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. This applies to both data cells and headers cells.
    Sample table cell
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.

    Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.

    Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.

    We hope to get this issue fixed soon, but in the meantime, you can fix this problem by going into the Text (HTML) editor and adding 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. For example:

Change this:

<td>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.

Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.</td>

To this:

<td>

 

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.

Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.</td>

 

License

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