Reputation: 51
Zoom css property not working for IE9,10,11. Observed while print preview UI disturbing and the default scale is Shrink to fit. When i changed this scale from Shrink to fit to 50% the page is displaying properly(print preview).Can any one help how can i set scale to 50% using CSS code.
Upvotes: 2
Views: 8454
Reputation: 51
<style type="text/css" media="print">
body {width: 200%;height: 200%;margin: -50% -50%;}
</style>
After adding above print CSS for page, it is working as expected in IE (somewhat better).
For Edge, I added the following code for scaling:
<style type="text/css" media="print">
body {zoom: 50%;}
</style>
Upvotes: 3