Wednesday, September 06, 2006

HTML Page Break

Code snippet for inserting page breaks to print in different pages.

<html>
<head>
<title>page-break-after Example</title>
<style>
.newpage {page-break-before: always}
</style>
</head>

<body>
<p> This is on a first printed page.</p>
<p class='newpage'> This will be printed on a second page. </p>
<p class='newpage'> This will be printed on a third page. </p>
</body>
</html>

No comments: