Solved

page break in html document

Posted on 2002-05-02
6
180 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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 …

791 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