table-striped background color will not Print

table-striped background color will not Print

rldean1rldean1 Posts: 131Questions: 61Answers: 1

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

  • colincolin Posts: 12,875Questions: 0Answers: 2,198

    Thanks for reporting,

    Colin

Sign In or Register to comment.