My table header is not correctly aligned with my table body.
DEMO:
https://jsfiddle.net/DTcHh/18178/
I am using the following CSS:
table tr { /* FOR PRINTING */
-webkit-column-break-inside: avoid !important;
page-break-inside: avoid !important;
break-inside: avoid !important;
display: table; /* Here*/
}
table thead tr { /* Override for the above - need to fix */
display: table-row; /* Here*/
}
I am using the display table on the tr to ensure the rows dont overlap onto two pages when printing.
However using this on the tr totally messed up the table head. Therefore i used table-row on the thead tr to fix the header.
However now this fix doesn't correctly align the table head with the body. I need the display table on the table tr for printing.
Is there anyway i can correctly align these up with ensuring that the rows dont overlap when printing.
Anyone???
Or is there a way to get the page break working without the display: table on the tr??