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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -