I have an HTML5/CSS page whose style contains
when I print it, Prince generates correctly the PDF but the text column in wider than the page and overflow on the right paper edge. I do not understand why. Any idea?
@media print {
@page {
size: A4 portrait;
margin: 25mm 15mm;
margin-inside: 25mm;
}
body {
margin: 0;
padding-top: 0;
padding-bottom: 0;
widows: 2;
orphans: 2;
background-color: #ffffff;
color: #000000;
}
header,
footer,
main {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
max-width: none !important;
min-width: unset !important;
background-color: #ffffff;
color: #000000;
}
when I print it, Prince generates correctly the PDF but the text column in wider than the page and overflow on the right paper edge. I do not understand why. Any idea?