PageBreak if Content is not on one page

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
PhilipBogner
Propeller Head
Posts: 55
Joined: Mon Nov 17, 2014 12:28 am

PageBreak if Content is not on one page

Post by PhilipBogner »

Hey Guys,

for you, i guess, its a simple question.

How you can see at my screenshot, i've got a table, and its at the end of the page. The content inside of the table is too big, so the table is getting streched on the next page.

Is it possible to say, if the content is too big, than do a page break and do everything on the next page, including the header, in this case the header "option"?

Hope you understand what i mean.

Sorry for the bad english. ;)

BR,

Philip
Rene Severens
Sr. Propeller Head
Posts: 210
Joined: Mon Sep 19, 2011 2:06 am
Location: Netherlands - Zoetermeer
Contact:

Re: PageBreak if Content is not on one page

Post by Rene Severens »

Hi,

Put your table inside a <div> tag
Create a style in the stylesheet div.nopagebreak

div.NoPageBreak
{
page-break-inside: avoid;
}

Apply this on the div in the topic.

Greetings,

Rene Severens
"The numbers are strange today; they somehow do not seem to add up."
PhilipBogner
Propeller Head
Posts: 55
Joined: Mon Nov 17, 2014 12:28 am

Re: PageBreak if Content is not on one page

Post by PhilipBogner »

Works perfect, Thank you!
deeptikorwar
Sr. Propeller Head
Posts: 111
Joined: Tue Aug 20, 2013 11:38 pm

Re: PageBreak if Content is not on one page

Post by deeptikorwar »

Hi,

Is there a way to achieve this within ordered and unordered lists? I have li followed by p.note or div.extendednote and I want to keep the li and note together.

Thanks,
Deepti
Rene Severens
Sr. Propeller Head
Posts: 210
Joined: Mon Sep 19, 2011 2:06 am
Location: Netherlands - Zoetermeer
Contact:

Re: PageBreak if Content is not on one page

Post by Rene Severens »

Hi,

No, it will not work when placed a list and a note inside this div. All parts inside the div will be moved to the next page, which is probably not what you want.

Instead I use a styled p that makes sure that the text inside the note is always kept together (same code). This way the list will appear in the normal text flow, and when a used note ends up near the end of the page, only the note will be moved in total to the next page, and then the list continues. (works even for notes used inside lists).

Greetings,
Rene Severens
"The numbers are strange today; they somehow do not seem to add up."
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: PageBreak if Content is not on one page

Post by ChoccieMuffin »

deeptikorwar wrote:Hi,

Is there a way to achieve this within ordered and unordered lists? I have li followed by p.note or div.extendednote and I want to keep the li and note together.

Thanks,
Deepti
Is the note PART of the li, or does it belong outside the list?

If it ought to be part of the list item, in the li press Ctrl+; to make a paragraph, add p.note as a child of the li. To the paragraph inside the li that is immediately before, apply a "page-break-after:avoid" (I have a generic style called .KeepWithNext with this attribute so I can use it in several places).
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply