Solved

Page break in HTML pages

Posted on 2004-03-25
4
372 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
[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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
g_damodar earned 250 total points
ID: 10675499
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 how to look for a specific file type in a local or remote server directory using PHP.

695 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