Using CSS to specify page breaks

To add page breaks to a printed webpage use the CSS attributes page-break-before or page-break-after. Both tell the printer to begin printing a new page, either before or after the element the attribute is applied to.

.pagebreak {
page-break-after: always;
}

Tags: , ,

About Keiron

Web Developer based in the UK. Click here if you want to work with me