Forum How do I...?

Placing page break inside nested table

funa
I have many levels of nested tables, each with its class.
How do I force page break before some particular table class?
mikeday
table.someclass { page-break-before: always }
funa
Thank you, this is what I am also trying.
However, it works only for the out most table.

If I put this code for nested tables it doesn't work, i.e. there is no page break.
Any hint?

Igor
mikeday
Oops, you're quite right, the page break is being ignored. You can get a page break between rows of the table, but not in the middle of a cell, unless that cell naturally spans more than one page. We'll investigate this issue and see if we can improve it for the next release of Prince.
mikeday
Today we have released Prince 6.0 rev 7, which supports the page break properties within table cells. Thanks for letting us know about the issue. :)
msicorp
I have encountered the same issue it seems. If you look at my attachment (sample.txt), you will see what we are trying to accomplish.

Basically, I want a page break when the image occurs.

I tried to add a new row with a nested table but that didn't work. I created a class on my nested table...

table.breakafter { page-break-before: always; }

Any thoughts?
  1. sample.txt0.4 kB
mikeday
You can apply the page break property to the <tr> element, or to a <div> inside the <td>, either of those should work.