Use Template Textboxes

The Pressbooks textbox tool in the visual editor allows you to place text with frames to have it stand apart from the rest of the text in the body of your book. The structure and color of textboxes may vary from theme to theme.

Add Textboxes to Your Book

To add an empty textbox to your post from the visual editor, click on the Textboxes dropdown and select your desired textbox type. If you do this with a selection of text already highlighted, this text will be placed within the newly created textbox.

Pressbooks includes six preset textbox styles. Each of these also features a ‘sidebar’ variation which will display at 25% of the container width by default and was defined for PDF exports.

Preset textbox styles include the following:

Standard: This is a standard textbox.
Shaded: This is a shaded textbox.

Learning Objectives

This is a Learning Objectives textbox. Type your learning objectives here.

  • First
  • Second

Key Takeaways

This is a Key Takeaways textbox. Type your key takeaways here.

  • First
  • Second


This is an Exercises textbox. Type your exercises here.

  • First
  • Second


This is an Examples textbox. Type your examples here.

  • First
  • Second

You can modify or edit the content within any of the textboxes. You can also insert a ‘custom’ textbox, which allows you to define a custom textbox class that you can target with Custom Styles.

Note: Standard and shaded textboxes were designed to include a single paragraph. If you’d like to include multiple line breaks within these textboxes, you can simply press “Shift+Enter” in the visual editor to create a ‘soft return’.

This will add line breaks without breaking the textbox (it’s what we did in this standard textbox, for example). If you feel confident in your ability to edit HTML tags, you can also switch to the Text Editor and edit a textbox’s <div> element directly.


Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

NSCC Pressbooks Guide Copyright © 2024 by Nova Scotia Community College is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.