Forum Documentation

Avoid page break after a particular row in table

malathi
To avoid the page break after a particular row of the table, I am using the following css to the row,

 <tr style = "page-break-after: avoid"><td>Tesing</td></tr>  


but still the page break occurs after the particular row.....how to avoid this...

mikeday
Hmm, is there any difference applying "page-break-before: avoid" to the next row?
malathi
also try that ... no difference

Edited by malathi

mikeday
Can you attach a sample document showing the problem?
malathi
ya sure ...
  1. pdf1.pdf24.0 kB
    genereated pdf
  2. sample1.html36.7 kB
    i am trying to conve this html document
mikeday
In the document you have applied "page-break-after: avoid" to a <tr> (Sub 1) and later to a <td>. If you move the second property to the <tr> as well, then it should work as expected.
malathi
yes it is worked...