Solved

Page break in HTML pages

Posted on 2004-03-25
4
364 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

786 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