Solved

Page break in HTML pages

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl 101 11 72
Web Application Architecture 6 75
Build and evolve an interactive experience 1 89
Specific format 21 185
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

20 Experts available now in Live!

Get 1:1 Help Now