Forum How do I...?

Avoid page breaks

I have added for elements like h3 a
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?
Is there any other markup around the h3 or img element? Are there any float or positioning properties applied to these elements, or multi-column layout?