Where to insert HTML to control PDF page breaks?

Hi,

My question: where to I insert any HTML code to instruct a PDF-printer where to (avoid a) page break? Is it with a HTML-element, and if so - how do I target the div that I want to avoid from page-breaking?

Reason of question: I have an issue with avoiding page breaks after a header of large tables (1st screenshot below).

There are examples of how to instruct the PDF-printservice (in my case PDF.co) where to break and avoid to break (2nd screenshot below).

1 Like