Open Anujkmrpal opened 4 years ago
idea : embed with a div like :
<div style="page-break-after: always;">
<table></table>
</div>
This solution worked for me. Wrapping every <tr>
inside a <table>
<table>
<tr>
<td>Forename</td>
<td>John</td>
</tr>
</table>
<table>
<tr>
<td>Surname</td>
<td>Piper</td>
</tr>
</table>
<table>
<tr>
<td>Website</td>
<td>desiringgod.org</td>
</tr>
</table>
@pmaganti answer helped me to achieve this but along with his code, some extra stylings were required. This is how I achieved it.
@parthg13 @pmaganti It would only work if table has no borders otherwise the columns in two different rows won't align
Any solution for this problem ?
Any help would be really appreciated!
I am using the table with multiple rows so I want to use page-break so then a single row does not divide into two pages but it's not working when converting it to pdf. But when checking HTML design with CTRL + P it looks fine.
HTML code is given below