I am working on a print page for a client. After playing for a while, I found myself getting an extra blank page. Unusually, if I select “Block Element Level Elements” in the web developer for chrome, the sub page disappears. These are all the CSS that is being used on this page right now:
@page { size: auto; margin: 0mm; } body { background-color:#FFFFFF; height: 296mm; border: 1px solid black; margin: 0px; } .print_A4 { margin: 0mm; padding: 0mm; height: 270mm; width: 210mm; } .A4_content { margin-left: auto; margin-right: auto; margin-top: 44mm; height: 210mm; width: 165mm; }
I have done a lot of search queries, but I do not see anything related to this. At the border of the body, the end of the div is clearly displayed until the end of the first page, however for some reason I still get an extra blank page.
Andre source share