Avoiding page breaks within table cells

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
EBergman
Jr. Propeller Head
Posts: 9
Joined: Wed May 17, 2017 6:30 am

Avoiding page breaks within table cells

Post by EBergman »

Hi! I have a lot of instances of short lists inside large tables which I don't want separated by a page break. Basically, I want to tell Flare to page break in between table rows, rather than inside them:

Code: Select all

<tr>
<ul>
<li>text</li>
<li>text</li>
/* NO PAGE BREAK HERE */
<li>text</li>
</ul>
</tr>
/* PAGE BREAK HERE */
<tr>
<ul>
<li>text</li>
<li>text</li>
<li>text</li>
</ul>
</tr>
Can this be easily done without inserting a <div> into every cell of the tables?
EBergman
Jr. Propeller Head
Posts: 9
Joined: Wed May 17, 2017 6:30 am

Re: Avoiding page breaks within table cells

Post by EBergman »

Turns out the following CSS easily solved my problem:

Code: Select all

td
{
page-break-inside: avoid;
}
Live and learn! :)
Post Reply