I have a long HTML to print. Page is ready for printing but I need to border every single page. I added body { border:2px #666 solid; padding:5px; }
in CSS cod
By default, the border renders outside of the area of the element.
Try adding this to the print CSS:
body { box-sizing: border-box; border: 10px solid black; }
Hope this helps!
Edit: you can also try making the border bigger, and adding temporarily !important to the box-sizing and border CSS. That sometimes helps me find the source of the trouble.