I have a long table data, which having many of the rows and nested tables. When I am printing this data then the rows of the table and nested tables are just break on the pa
Instead of putting the page-break-inside:avoid; on you table's tr, try applying it on the table directly like this:
page-break-inside:avoid;
table { page-break-inside:avoid; position:relative; }
also add this media query:
@media print { table { page-break-inside:avoid; position:relative; } }