Forum How do I...?

Tbody page breaks

someuser
Is it possible to define a page-break-inside style for a tbody? I am trying to use
tbody {page-break-inside: avoid;}
but it is not behaving as expected (it is not avoiding this page break).
mikeday
Prince may be ignoring the property on tbody elements, we'll take a look. In the meantime, you may be able to work around this by applying page-break-after to the table rows within the tbody instead.
someuser
Yes, because I have max 2 rows per tbody the following fixes my problem
tbody > tr:first-of-type {
   page-break-after: avoid;
}
mikeday
We have added support for page-break-inside on tbody elements to Prince 6.0 rev 3, available now. Thanks for reporting the issue! :)
libertysource
Is this issue solved. It's not working for me in Prince 11.

<style>
table.summary {
page-break-inside: avoid;
}
table.summary tbody.avoidRowBreak{
page-break-inside: avoid;
}
</style>
.
.
<table class="summary">
<thead>....</thead>
<tbody class="avoidRowBreak">
...
</tbody>
<tbody class="avoidRowBreak">
...
</tbody>
mikeday
Where exactly do you prefer it to break? Is it necessary to apply page-break-inside: avoid to the entire table as well as the individual tbody elements?