="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

52 Tables & Textboxes

Hugh McGuire

This chapter will cover how to insert and customize tables and textboxes in your book in Pressbooks.

How to Create Tables in Pressbooks

For best results including tables in your book, use our Table Creator tool in the Visual Editor.

Log in to your book. Go to Text / Organize and click on the chapter in which you would like to add a table.

Click on the toggle bar at the top right to show the full formatting toolbar.

toggle toolbar

Toggle toolbar

Then use the Table Creator tool at the bottom left to create a table in your book.

table tool

Once you have created your table and filled it with text, you can add styles such as headings as you would normally, by highlighting the text and choosing a style from the dropdown menu in the toolbar.

To edit the table in other ways, place your cursor in any cell and click on the Table Creator button once again. From this menu you can:

  • Insert another table within a cell
  • Access the table properties (see below)
  • Delete the entire table
  • Edit cell, row and column properties
  • Merge and split cells
  • Add and remove rows and columns
  • Copy, cut and paste rows and columns
Table menu

Table menu

Table Properties

If you open the table properties window, you will see more options for how you want to display your table:

  • Check “Caption” to add a caption (which is really more of a title or header)
  • Change the table alignment on the page
  • Add simple styling from the “Table Type” menu
  • Add a custom CSS class to enable more styling from the CSS editor
Table properties menu

Table properties menu

How to Create Textboxes in Pressbooks

To add a textbox to your post, click on the toggle bar at the top right to show the full formatting toolbar.

toggle toolbar

Toggle toolbar

Then find the “Textboxes” menu and make your selection. This will insert an empty textbox into your post. Alternatively, you can highlight your text first, then choose the textbox style you need and see it appear with your text already inside:

Choose your textbox style

Choose your textbox style

Textboxes can serve many purposes, and Pressbooks has several preset styles to suit your needs, including many that are useful for textbooks and workbooks. Some of the more specialized styles include:

  • Learning Objectives
  • Key Takeaways
  • Exercises
  • Examples
  • Custom (this allows you to add a custom CSS class that you can then style in the CSS editor)

NOTE: Textboxes can be a little temperamental, and in particular don’t like you hitting “Enter,” which will create a new textbox below the existing one. To get around this, you need to use a soft return by hitting “Shift+Enter” to get a new line.


Icon for the Creative Commons Attribution 4.0 International License

Tables & Textboxes by Hugh McGuire is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.