Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Page Break while Printlng Using JSS and CSS in HTML



4:14 am on Aug 27, 2001 (gmt 0)

Inactive Member
Account Expired


hai All,
I am having same Problem in Printing HTML Page in Netscape Browser.
Please see the Following Code.

<span class="code">

<title>Page Break</title>
<style type="text/css">
P { page-break-after: always }
<body bgcolor="ffffff">
<center> <p>
Page Break<br>
<hr width="400">
This is a way to page break after each ending Paragraph Tag.<br>
Page 1
<p>Page 2</p>
<p>Page 3</p>
<p>Page 4</p>

Here I am using CSS to insert the Page Break in HTML,
This Code is working fine in "Internet Explorer" Browser,
but if I use the same code in "Netscape Browser" it is NOT
Can any one Help I this
D S S Sampath Kumar

8:09 pm on Aug 27, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

Welcome to Webmaster World, Sampath.

The code for forcing a page break is CSS-2, and Netscape does not yet support it, not even in version 6. I wish I could offer happier news, but at least you can relax about making it work in Netscape; it won't!

Whenever most browsers support CSS-2 we will have a better word in terms of printers and other devices. But for now, I usually create a downloadable file for printing, such as a PDF or RTF. There just isn't enough cross-browser control otherwise.