Page Break when >50% of page blank?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
peterbrown05
Propeller Head
Posts: 52
Joined: Fri Jun 18, 2010 9:08 am

Page Break when >50% of page blank?

Post by peterbrown05 »

I would like all my H2 print form paragraphs to have a page break before - unless doing so would leave more than say 50% of a blank page on the previous page.
Basically, I want to avoid having a H2 heading towards the very bottom of a page; if its above "the fold" then Im happy for it to stay on the same page as previous.

Ive configured:

Code: Select all

@media print
{
   h2
   {
      page-break-before: always; 
   }
}
but wondered if there is any way that the page break before can be more intelligent?

cheers
pete
Post Reply