How To: Create Multi-Page Documents with Page Breaks
Control page breaks and keep content together in multi-page documents.
Problem
Solution 1: CSS Page Break
<div style="page-break-after: always;">
<h1>Page 1 Content</h1>
<p>This content appears on page 1.</p>
</div>
<div>
<h1>Page 2 Content</h1>
<p>This content appears on page 2.</p>
</div><div style="page-break-inside: avoid;">
<h2>Keep Together</h2>
<p>This entire section stays on one page.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>Solution 2: Table Row Page Breaks
Solution 3: Conditional Page Breaks
Tips
Last updated
Was this helpful?

