Comment on page
Dealing with page breaks
The simplest way to force a page break to happen is using CSS. You can use the
page-break-beforeproperty to define a class like this:
You can then apply this class to any element you want to insert a page break before.
If you want to avoid a section of your document from being broken between pages, you can use the
page-break-insideCSS property to do so:
If you apply this class to an element, it will have no effect for an element that is in the middle of the page but if it risks being broken between two pages, it will insert a page break before it.