Is there a cross-browser fix for enabling background-image
in combination with background-size: cover;
when printing a webpage?
I would appreciate all kinds of solutions even those using JavaScript!
Is there a cross-browser fix for enabling background-image
in combination with background-size: cover;
when printing a webpage?
I would appreciate all kinds of solutions even those using JavaScript!
Try following:
Add meta-tag on your page:
<link rel="stylesheet" href="print.css" media="print" />
In the print.css next tag:
#mydiv {background-image: url('link/to/imagefile'); background-size:cover; display:block;}
In the style.css (on screen):
#mydiv {display:none}
Hopefully this helps you.