Add margin at the top of each page with a fixed text (print view)

Viewed 360

When printing (Control + P), and have multiple pages, I am setting a fixed text at the top of each page. However, I need to add margin at the bottom of that text in a way it's not causing issue with the page content.

@media print {
    table.tblStandard {
        position: fixed;
        top: 0;
    }
    table {
        page-break-inside: avoid;
    }
}

enter image description here

1 Answers

Can you try this ?

.printmargin {display:none;height:50px;}
@media print {
    .printmargin {display:block !important}
}
Related