Page break

Content blocks

Page break

Starts a new page when the design is printed or saved as a PDF.

Options#

  • Rule color and an anchor you can link to
  • In an email it is a thin dashed rule, so it never breaks a layout

What it outputs

The block is a div with break-after: page and page-break-after: always around a 1px dashed rule (default color #cccccc, 10px padding). In an inbox the reader sees only the thin rule. When the HTML is printed or saved as a PDF, the content after it starts on a new page.

Anchors

Set an anchor and the block gets that id, so a link to #your-anchor jumps to it. Only letters, digits, - and _ are kept; other characters are removed.

With the Document builder

It is most useful in a document. renderDocument adds an @page rule with pageSize (letter by default, or a4) and margin (default 0.5in), and in print it keeps each block from splitting across two pages.