Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

page break in html document

Posted on 2002-05-02
6
Medium Priority
?
201 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
[X]
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
6 Comments
 
LVL 18

Accepted Solution

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

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

636 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