Solved

Page break in HTML pages

Posted on 2004-03-25
4
360 Views
Last Modified: 2010-04-06
Is it possible to insert a page break in HTML pages using javascripts or any other means?  this is to facilitate the printing of a report. pls help.. thanks in advance..

regards,
popster
0
Comment
Question by:popster
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
g_damodar earned 250 total points
ID: 10675499
0
 
LVL 4

Expert Comment

by:g_damodar
ID: 10675514
0
 

Expert Comment

by:wwwgts
ID: 10675890
Add this inside your <head></head> tag:

<style>
p.page {page-break-before: always}
</style>

Then inside <body></body>

<p class="page">
What ever html stuff you want to print on one page
</p>
0
 
LVL 35

Expert Comment

by:YZlat
ID: 10676560
<br style="page-break-before:always;">

or

br {
page-break-before:always;
}
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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…

762 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

23 Experts available now in Live!

Get 1:1 Help Now