Stop page breaks for certain tags

Jan 15, 2016 at 10:07 AM
Edited Jan 15, 2016 at 10:09 AM
Hi, is there any way to ensure a page break doesnt happen for html content within certain tags, when using PdfGenerator.GeneratePdf? For example:
<div>
<p>Text</p> <p>Text 2</p> <div>

I'd like to ensure that everything within div appears on the same page (unless it exceeds the length of a page).
Thanks