Is it possible to change the background of an element in the print style sheet? I have the following code:
<td valign="top" bgcolor="#dddddd" class="cinza" nowrap="">Seu Nome<br>
<div align="right" class="campo">Eu Sou o João</div>
</td>
- I used
bgcolor="#dddddd"
, did not work. - I used the style
<style>
:
<style media="print">
.cinza{background-color:#dddddd !important;}
</style>
It did not work either.
Is it possible or not to change the background color of an element for printing?