Adding a page break (page-break) in the HTML for PDF documents (IronPDF)
- Reports
- html
- IronPdf
https://ironpdf.com/docs/questions/html-to-pdf-page-breaks/
You can force a page break with this
<div style='page-break-after: always;'> </div>
avoid breaks with this
<div style='page-break-inside: avoid'>.
<img src='no-break-me.png'>
</div>
OR
<style type="text/css">
table { page-break-inside:auto }
tr { page-break-inside:avoid; page-break-after:auto }
thead { display:table-header-group }
tfoot { display:table-footer-group }
</style>