print page break css code example
Example 1: table broken html after change page
<html>
<head>
<style>
@media print
{
table { page-break-after:auto }
tr { page-break-inside:avoid; page-break-after:auto }
td { page-break-inside:avoid; page-break-after:auto }
thead { display:table-header-group }
tfoot { display:table-footer-group }
}
</style>
</head>
<body>
....
</body>
</html>
Example 2: how to use css print page break with float
$('.break-after').after('<div class="page-break-clear"></div><div class="page-break"> </div>');