Solved

Printing page breaks

Posted on 2004-08-24
3
172 Views
Last Modified: 2010-04-06
I have a long HTML page, how do I define page breaks in the page so when I go out to print it, it prints new page where I defined?

Also is there any good websites on printing html, layouts, etc...


Thanks in advance
0
Comment
Question by:auduin
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 100 total points
ID: 11888465
Hi

You can only do it with CSS, and it's only workable on recent browsers. (it might be IE-only not sure)

<html>
<head>
<style>
.pagebreakbefore {page-break-before:always;}
</style>
</head>
<body>
<div>
Content
</div>
<div class="pagebreakbefore"></div>
<div>
Next Page
</div>
</body>
</html>

Regards,
Zyloch
0
 

Author Comment

by:auduin
ID: 11888508
thanks that works fine.

How do I use CSS to remove title and footer.

The page has an ugly tile

Untitled Page 1 of 3

and an ugly footer that displays the URL status and date.
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 11888524
Ah, well, that, unfortunately, is not yet possible. It's because some printers don't print out those headings and footers and some do, and it's purely an user option (to provide them convenience in knowing which site it came from, for instance). It's just the limitations of programming, nothing I can do about it, sorry.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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:

770 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