Page break in HTML pages

Is it possible to insert a page break in HTML pages using javascripts or any other means?  this is to facilitate the printing of a report. pls help.. thanks in advance..

regards,
popster
popsterAsked:
Who is Participating?
 
wwwgtsCommented:
Add this inside your <head></head> tag:

<style>
p.page {page-break-before: always}
</style>

Then inside <body></body>

<p class="page">
What ever html stuff you want to print on one page
</p>
0
 
YZlatCommented:
<br style="page-break-before:always;">

or

br {
page-break-before:always;
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.