I understand that the CSS page-break-inside:avoid instruction is supposed to prevent a page break within a div when an HTML document is printed. Through searchi
page-break-inside:avoid
How about just matching all element inside your element, except the first ones, and have them not break-before
#yourelement *+*{ page-break-before: avoid; }