This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Page Break issues

jayshree.bhongle wrote on 2012-09-26:

I have a html where there are multiole tables.My requirement is that every table should be on new page and hence we are adding css page break property but when i generate pdf my each table is not generated on new page.
However is there any mechanism by which i can add a propert so that my tables should not break
support wrote on 2012-09-26:

use the the following to insert a page break before a table:
<table style="page-break-before:always">...</table>

To avoid a page break inside a table cell you can use the page-break-inside css property:
td, tr { page-break-inside: avoid;}

Hope this helps.