When using the usual trick:
@media print {
@page { margin: 0; }
body { margin: 15mm 15mm 15mm 15mm; /* margin for the content */ }
}
to disable the browser's priting header/footer, it actually works on the first page of the document, but not on page 2, page 3, etc. which have a zero-margin (this is normal, because of margin: 0
).
Of course we could change the margin-top for other pages, but then it would restore the browser printing header.
How to remove the browser's printing header/footer from CSS or JS, but have a 15mm plain white margin on all pages of the printed document?