page break in html document

Posted on 2002-05-02
Last Modified: 2010-04-09
Is there any way to add a page break to an html document? We needed to have the address portion of an invoice printout appear on a new page of an invoice. (so basically can you somehow force a printing page break in html)? The solution only needs to work in IE 5.5 or 6. Any ideas?
Question by:xandrr
  • 3
  • 2
LVL 18

Accepted Solution

bruno earned 50 total points
ID: 6987099
you can do this in CSS...

you could do something like that...

<p STYLE="page-break-before: always">test text in the paragraph</p>


<p STYLE="page-break-after: always">test text in the paragraph</p>

I would probably do this

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

and you should have a page break right after that P tag...

LVL 22

Expert Comment

ID: 6987123
<style type="text/css">

now add


and you will get a page break when printing.

LVL 22

Expert Comment

ID: 6987124
*sigh* stupid chatbox, it takes my time away from me :-(

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 18

Expert Comment

ID: 6987129
>>*sigh* stupid chatbox, it takes my time away from me :-(


Author Comment

ID: 6987140
GREAT! exactly what i needed.
LVL 18

Expert Comment

ID: 6987156
Glad I could help!  Thanks for the A.  :-)

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question