page break in html document

Posted on 2002-05-02
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 18

Accepted Solution

bruno earned 200 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 :-(

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

770 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