Closed Thread Icon

Topic awaiting preservation: Dividing long html page on printer-friendly mode Pages that link to <a href="https://ozoneasylum.com/backlink?for=25433" title="Pages that link to Topic awaiting preservation: Dividing long html page on printer-friendly mode" rel="nofollow" >Topic awaiting preservation: Dividing long html page on printer-friendly mode\

 
Author Thread
Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 04-05-2005 10:44

Hi,
I wonder if there is a simple way to divide long HTML page to smaller parts (each part in a different page) when printing the page.

10x in advance
Yossi

Yossi Admon
Bipolar (III) Inmate

From: Israel
Insane since: Nov 2001

posted posted 04-05-2005 11:05

Found the answer...

code:
<HTML>
<style>
.break{
page-break-after: always;
}
</style>
<body>
<div class="break">
page 1X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X
</div>
<div class="break">
<br>page 2<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>
</div>
<div class="break">
<br>page 3<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>
</div>
<div class="break">
<br>page 4<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>
</div>
<div class="break">
<br>page 5<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X<br>X
</div>
</body>
</html>

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 04-05-2005 17:15

It's always a pleasure

« BackwardsOnwards »

Show Forum Drop Down Menu