Forum How do I...?

Avoiding page breaks before tables?

jheijmans
I know that Prince usually tries to avoid pagebreaks within tables (unless they're really large), but the document I have does have a lot of (relatively short) tables with normal text in between. Is it possible to enforce/encourage prince to put page breaks in these tables? I've tried to use
table { page-break-before: avoid}
and similar solutions, but that didn't help. Any solutions/suggestions would be most appreciated.
mikeday
So you want Prince to break the tables, and not move them to the next page?
jheijmans
mikeday wrote:
So you want Prince to break the tables, and not move them to the next page?


Correct. Basically half of the content is text, and half of the content is tables. With all the page breaks, this means I only get half filled pages, which is not quite what I'd like to have.
mikeday
Recent versions of Prince should break tables, depending upon the contents of the table cells. Would you be able to email me (mikeday@yeslogic.com) a short example of a document that illustrates the problem you are having?
Gabriel
I have the same problem with Prince 10. Did you found any solution?
mikeday
Prince has changed a lot in 7 seven years, perhaps you could start a new thread on the forum and post your document or describe what is the problem. :)