Home:ALL Converter>How to avoid page break inside tr?

How to avoid page break inside tr?

Ask Time:2018-09-25T19:09:54         Author:Iggsy

Json Formatter

How to avoid page break inside <tr>?

(ANGULAR PROJECT) I have table (PrimeNG table) and I want to avoid break after print page. I use Chromium/Chrome browse. After print I have this result: enter image description here

So, how to avoid this, or how to disable repeat thead?

I tried this links, but dosen't work:

How to avoid page break inside table row for wkhtmltopdf

"page-break-inside: avoid "- does not work

avoid page break inside row of table

Author:Iggsy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52496782/how-to-avoid-page-break-inside-tr
Jogi :

I have same problem. \nThis combination helped me\n\n@media print {\n html, body {\n width: 210mm;\n height: auto;\n }\n\n body {\n margin: 10mm 15mm 10mm 15mm; /* margin you want for the content */\n }\n\n p, img, a, div.image, div{\n page-break-inside: avoid;\n }\n\n table, thead, tbody, tr, td, th, label, strong{\n page-break-inside: auto;\n }\n}\n",
2018-09-25T11:17:25
yy