0
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 the
bgcolor="#dddddd"
, didn’t work out. - I used it as a style
<style>
:
<style media="print">
.cinza{background-color:#dddddd !important;}
</style>
It didn’t work either.
It is possible or not to change the background color of an element for printing?
I think you misunderstood the question :/
display:
,padding:
, etc... Justbackground-color:
doesn’t work.– Alexandre Lopes
Apparently it is due a configuration of the Browser. I edited the answer with a dial that works for Chorme.
– BrTkCa