CSS Page Breaks

To put in page breaks using CSS, you can use the page-break-before and page-break-after properties… For example:

<div style="page-break-after:always;">This is Page one.</div>

Page two.

<div style="page-break-before:always;">This is Page three.</div>

You could also combine both the tags if necessary. For example:

Content for Page 1 goes here.

<div style="page-break-before:always; page-break-after:always;">This always stays on a page of it's own</div>

Content for Page 3.
  • Share/Bookmark

Leave a comment

Your comment