I'm running into a page break problem and tearing my hair out.
I have figures set up with captions and shown above.
- The figure has a CSS property of page-break-after: avoid;
- The caption has a CSS property of page-break-before: avoid;
- Both are wrapped in a <div> tag with a CSS property of page-break-inside: avoid
The only way to get to the results I want is to insert blank lines (<p> ... </p>) at points, which is obviously not the best solution.
If anyone knows why the captions may be behaving like this I'd love to hear.
P.