0

how should I avoid the overlap? and need the header always on top every page... any help will be highly appreciated. below please find the code I have written

@media print {
    
    body {
        page-break-inside: avoid;
        width:100%;
        height:100%;
    }
   
    
    .header {
        position: fixed;
        top: 0;
        border: 2px solid red;
        
    }
    
     /* .header {
        position: fixed;
        height:100px;
        top: 0;
        width:100%;
    } */
    div.break-page1 {
      page-break-after: always;
    }
    @page {
        size: landscape;
        margin: 5mm 5mm 15mm 5mm;  
    } 
    
    .psi-table thead th{
        background-color: #E5F4FA !important;
        -webkit-print-color-adjust: exact; 
        page-break-inside: avoid;
    }
    .psi-table tbody tr{
        page-break-inside: avoid;
    }
    .psi-table tbody tr td{
        padding:4px !important;
    }
    .border-psi,
    .psi-table{
        border: 1px solid #a5a5a5;
        border-radius: 5px;
    }
    
    .bg-charges{
        background: #F2F3F5 0% 0% no-repeat padding-box;
    }
    .bank-details{
        background: #F2F3F5 0% 0% no-repeat padding-box;
        border-radius: 5px;
        padding:8px;
    }
}

enter image description here

GreyRoofPigeon
  • 17,833
  • 4
  • 36
  • 59

0 Answers0