Force a Page Break When Printing a Web Page

/ Published in: CSS
Save to your folder(s)

This will force a page break where this class appears.

Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. .pagebreak {page-break-after: always;}
  3. </style>
  5. <br class="pagebreak" />

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.