html - How to apply orphans on table rows -
i need display 3 rows on first page of pdf:
example of table here:
<table> <thead> <tr> <td> medication: </td> <td> formulation: </td> <td> route: </td> </tr> </thead> <tbody> <tr> <td> lorem ipsum </td> <td> lorem ipsum </td> <td> lorem ipsum </td> </tr> <tr> <td> lorem ipsum </td> <td> lorem ipsum </td> <td> lorem ipsum </td> </tr> <tr> <td> lorem ipsum </td> <td> lorem ipsum </td> <td> lorem ipsum </td> </tr> <tr> <td> lorem ipsum </td> <td> lorem ipsum </td> <td> lorem ipsum </td> </tr> <tr> <td> lorem ipsum </td> <td> lorem ipsum </td> <td> lorem ipsum </td> </tr> </tbody> </table>
this css doesn't give result:
@media print { table { tr { orphans: 3; } } }
does have better solution how display 3 rows on 1 page of pdf?
regards, srdjan
Comments
Post a Comment