How to add page breaks to html

February, 8 2012

We often get the question about creating HTML that sends proper page breaks to the printer.

It's actually very easy to handle. There are two ways to do it:

1) via CSS - for the advanced HTML users:

< p style="page-break-after:always;"> < /p >

2) with a simple comment:

< p >< !-- pagebreak -- > < /p >

 

** NOTE: remove  the spaces within the tags. We added spaces intentionally to prevent the HTML from being interpreted by your browser

That's it.

Post A Comment

Name:
Email Address: (will not be displayed)
Website:
Comment
Captcha
Featured in the National Website Design Directory