I have added for elements like h3 a
I can avoid page page break by giving
page-break-after: avoid;
but still when there is an image after the h3 there is cases where the page breaks. I also use prince-footnote-policy: keep-with-line;
I can avoid page page break by giving
page-break-before: avoid;
for the image element, but that looks werid when we already have page break rule for h3 before it?