How to add Space on the top for all print pages using html and css

  Kiến thức lập trình

enter image description here

Actually I converting html to PDF using Node JS. PDF also successfully generated but when PDF comes multiple pages not properly showing. I try to add header and table on all pages but it’s overlapping. how to fix this Issue. I tried lot of solution but it’s not working.

I applied this css
`

@media print {
   thead {
      display: table-header-group;
   }

   tr.page-break {
      page-break-before: always;
   }

   }
.header-section-0 {
    display: grid;
    position: fixed;
    top: 34px;
    left: 76px;
    right: 79px;
    height: 50px;
    z-index: 1000;
 }`

New contributor

Hari Venkatachalam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT