Section Breaks
Pressbooks has some special code you can inject to style your section breaks (breaks within a chapter). These are safer than other methods. Below you will find code for:
- Regular section breaks
- Section break with a space
- Section break with a page break
- Section break with glyphs
- Forcing a page-break after, or before an element
- Adding a blank page
Regular Section Break
This is a regular section break, usually denoted with an asterisk. To inject such a break, add the following code in the Text editor:
<h3 class="section-break">***</h3>
You can add whatever you like in the between the tags and it will appear in the output, so you might want to add, say:
<h3 class="section-break">~~~</h3>
Section Break With a Space
To add a break that is just a space with nothing else, add the code:
<h3 class="section-break-space">*</h3>
The “*” will not appear in the outputs, but it’s a good idea to leave it there, for purposes of editing, and since it is always best not to have empty tags.
Section Break With a Page Break
If you want a section break that includes a page break after the break, then add:
<h3 class="section-break-page">*</h3>
Section Break With Glyphs
If you want to use an image for your section break, then you can do the following:
- Add the image using the Media Uploader
- Make sure the image is centered.
- Then make sure the image is wrapped in a centered image div, as follows:
<div class="centered-image">
<img alt="section-break" src="https://guide.pressbooks.com/wp-content/uploads/sites/10270/2014/02/image.png" />
</div>
Feedback/Errata