Page Break in Front Page or HTML

M

Michael Kintner

How can I add a page break in HTML so when the user prints the HTML page
through IE it adds a page break?

Thank you for your help in advance!!! (smile)

Mike
 
R

Ritesh Nigam - Microsoft Techie

Starting with the release of Cascading Style Sheets 2 specification, you can
finally suggest to browsers when to break pages when printing your web pages.
The bad news is that only Explorer 4.x support this feature at this time. On
the other hand, adding page break tags to web pages will not cause any ill
effects on other browsers.

To suggest a page break, add <P style="page-break-before: always"> before
the beginning of a new printed page. For example, if you place the following
tags on a HTML page and print it using a compatible browser, you will end-up
with three pages with the sample text.

<html>
<body>

This is the text for page #1.

<p style="page-break-before: always">

Page #2...

<p style="page-break-before: always">

Page #3...

</body>
</html>
 
M

Murray

The bad news is that only Explorer 4.x support this feature at this time

Why does my IE6/FirefoxPR1 print those page breaks, then?
 
M

Murray

You can use several variants of print break CSS - page-break-before,
page-break-after, and page-break-inside.

They are not fully supported, but maybe well enough for your purposes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top