Having an issue with my html page layout where I am unable to display a border on both printable pages. My current code only adds the border to the first page.
Any suggestions on what I need to change in order to show the border on every printed page?
Below is my print media CSS and a screenshot for reference:
@page {
size: A4; /* auto is the default size */
margin: 1.54cm 1cm 1.54cm 1cm;
marks: crop cross;
}
html, body {
-webkit-print-color-adjust: exact;
margin: 0;
padding: 0;
height: 100%;
min-height: 100%;
border: 2px solid #cc0000!important;
}
.contract {
min-height: 100%;
position: relative;
height: 100%;
box-decoration-break: clone;
}
h2, h3 {
page-break-after: avoid;
}
See the screenshot highlighting the issue here: