Forum How do I...?

Avoid page break inside TR of a table

spatnaik
Hi

I do not want a page break inside a row of a table. I want the entire row to be either in the previous page or the next page.

To do that I have added the following in the css

TR {
page-break-inside: avoid;
}

Inspite of adding this page still breaks in a tr. Is this the right way of doing it?

Thanks,
Smita
mikeday
Try applying the rule to the table cell (td) instead, and it should work.
spatnaik
Thank you Mike.
It worked. :)
mikeday
Today we have released Prince 6.0 rev 5, which includes support for page-break-inside: avoid on table rows as well as cells.