I have used window.print() function to print a web page with a table. The table header has a font color. The problem is, on printing the headers are just black. Below is the code:
<thead>
<tr style="color:red">
<th>Property name</th>
<th>Room number</th>
<th>Month</th>
<th>Tenant name</th>
<th>Rent Required</th>
<th>Rent Paid</th>
<th>Balance</th>
</tr>
</thead>
//button
<input type="button" class="btn btn-block
btn-primary btn-xs" value="PRINT"
onclick="window.print() ;" />
Is there a way to make it print the table row in red?