Answers for "css print page break"

0

html print page break

@media print {
    .pagebreak { page-break-before: always; } /* page-break-after works, as well */
}

//Then add a div with class=pagebreak any where you want a page break.

<div class="pagebreak"></div>
Posted by: Guest on September-20-2021
0

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>
Posted by: Guest on October-15-2020
0

how to use css print page break with float

$('.break-after').after('<div class="page-break-clear"></div><div class="page-break"> </div>');
Posted by: Guest on February-19-2021

Browse Popular Code Answers by Language