Welcome to WebmasterWorld Guest from 54.227.1.130

Forum Moderators: not2easy

Message Too Old, No Replies

Page Break while Printlng Using JSS and CSS in HTML

     

dsssk

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

10+ Year Member



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

<span class="code">

<html>
<head>
<title>Page Break</title>
<style type="text/css">
P { page-break-after: always }
</style>
</head>
<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>
<p>Page 2</p>
<p>Page 3</p>
<p>Page 4</p>
</center>
</body>
</html>
</span>

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
Regards
D S S Sampath Kumar

tedster

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

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



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month