how to avoid extra blank page at end while printing?
Have you tried this?
@media print {
html, body {
height: 99%;
}
}
You could maybe add
.print:last-child {
page-break-after: auto;
}
so the last print
element will not get the extra page break.
Do note that the :last-child selector is not supported in IE8, if you're targetting that wretch of a browser.