In MVC project, we are using bootstrap.
There is need to hide div for xs devices and have to show at time of print and desktop.
Code is in below as:
<div class="hidden-xs">
--Content--
</div>
But it is hiding div at time printing to window.
<div class="hidden-xs print-visible"> content </div>
@media print{
.print-visible{
display: block !important;
}
}
Add a additional user defined class to hidden-xs div(as above) and in your style sheet add the above rule. Hope it fixes your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With