template.html
{% block css-custom %}
<link rel="stylesheet" type="text/css" media="print" href="{{ STATIC_URL }}style/print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ STATIC_URL }}style/print.css" />
{% endblock %}
{% block main-content %}
''''''''''''''
<table width="100%" border="0" class="printimg">
<tr><td>some data</td></tr></table>
'''''''''''''''''
{% endblock %}
I want to set the above image as background for the table.If i set the same image in a tag in , it is coming for display, but as background it is not happening.As html page it is working,problem is with printing it in paper.
On print preview the background image is coming for display but on printing in paper the image gets disappeared.
edit:
report.css
.printimg {
background:url('/static/images/human.png');
width:128px;
height:293px;
background-position:center;"
}
/* media:screen */
@media screen {
.printimg img{
visibility: hidden;
}
}
/* media:print */
@media print {
.printimg img{
visibility: visible;
}
}
I tried with this css,still the same problem is their.