Force a Page Break on a Domino Web Page

You Can View User Feedback To This Tip

I had a need to force a page break after a certain section of a page generated by Domino. I created a style sheet and used the ID attribute in conjunction with the P tag to force the page break. Domino places a <p> at the beginning of the body tag. So you can't force the page break using only the <p> tag. So by using the ID attribute it only breaks the paragraph where I tell it to! This works with straight html as well.

Thanks to Matthew Sheranko from the lnotes-l list for the basic idea. More information can be found at:

Code: Place the following code in the "HTML Head" section of your domino form:
       #pbb4 { page-break-before: always }

And place a <P ID=pbb4> where-ever you need the forced page break on your generated form.

Here's an example in straight html:
   <HEAD><TITLE>Dynamic Styles: Page Breaking</TITLE>
       #pbk1 { page-break-before: always }
       <p >
       1st page content
       <p >
       more 1st page content
       <p id=pbk1>
       2nd Page content


  • This works for IE but doesn't function at all in Netscape. —Barry Parish

This was first published in January 2001

Dig deeper on Domino Resources - Part 6



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...