Force Page Break in Domino Web Page

Mindwatering Incorporated

Author: Tripp W Black

Created: 03/07/2001 at 08:37 PM

 

Category:
Notes Developer Tips
Forms/Subforms

Issue:
Force/control/insert page breaks on a web page.

Code:
CSS2 has a page-break-before tag. Use it with a paragraph, table, or div tag to force a break to the next page.

Sample One w/P tag:
<style>
#pbreak {
page-break-before: always;
}
</style>
...
<p id="pbreak" name="pbreak"></p>

Sample Two w/DIV tag
<head>
<style>
@media all {
.pgbreak { display: none; visibility: hidden; }
}
@media all {
.pgbreak { display: block; visibility: visible; page-break-before: always; }
}
</style>
</head>
<body>...
<div class="pgbreak"></div>
...
</body>

previous page