Unexpected page breaks

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Unexpected page breaks

Post by oceanclub »

Image

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
Instead I get results as shown where even with plenty of space on the page, the caption is sent to the next page.
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.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Unexpected page breaks

Post by ChoccieMuffin »

Can't see your image, you may need to upload it. Below the body of the message click the Upload attachment tab and add it from there.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
doloremipsum
Sr. Propeller Head
Posts: 290
Joined: Mon Aug 26, 2019 2:11 pm

Re: Unexpected page breaks

Post by doloremipsum »

Counter-intuitive, but I generally find that this happens when there are too many attempts to control the page breaks. Flare has to put a page break in somewhere, but it you overdefine the situation it will just try to put one in anywhere. Maybe the following page has too much content that isn't allowed to break either? Try to strip out a few controls and just leave the minimum necessary.
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.
Post Reply