table-striped background color will not Print
table-striped background color will not Print
rldean1
Posts: 141Questions: 66Answers: 1
in DataTables
DT version 1.10.25 and BootStrap 4.
.table-striped
won't print background color. CSS styling and printing reports isn't really my forte.
Example fix gleaned from references listed below:
@media print {
.table-striped tbody tr:nth-of-type(odd) td {
background-color: rgba(0,0,0,.05) !important;
-webkit-print-color-adjust: exact;
}
}
https://stackoverflow.com/questions/34052332/print-bootstrap-striped-table
https://www.api2pdf.com/solved-bootstrap-striped-table-not-printing-to-pdf/
Answers
Thanks for reporting,
Colin