Rajesh
Rajesh

Reputation: 51

print scale to some % like 50% by using CSS for IE9,10,11

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

Answers (1)

Rajesh
Rajesh

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

Related Questions