So my two situations are (1) boxed text paragraphs, and (2) minor headings. If the box won't fit on the remaining space on a page, move the whole thing to the next page. If there is no room for the first paragraph after a one-line heading on the same page as the heading, move both the heading and the paragraph to the next page, together. For the first situation, I've used "page-break-inside: avoid" in css. For the other, I used "page-break-after: avoid" in the css for the one-line heading. Neither is working at all. Ugh.
|