Solved

page break in html document

Posted on 2002-05-02
6
157 Views
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?
0
Comment
Question by:xandrr
  • 3
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
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>

http://www.blooberry.com/indexdot/css/properties/print/pbbefore.htm


or

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

http://www.blooberry.com/indexdot/css/properties/print/pbafter.htm



I would probably do this

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

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


BRUNO
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6987123
<style type="text/css">
P{page-break-after:always}
</style>

now add

<p>

and you will get a page break when printing.

CJ
0
 
LVL 22

Expert Comment

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

;-)
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 18

Expert Comment

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


eh??
0
 

Author Comment

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

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now