On IE 8 and Firefox (3.6 and 4), if you go to Print Preview, you adjust the Print Scale by a a percentage or use Shrink to Fit. Does CSS have a property like scale:50%; or something to adjust the print scale?
<style type="text/css" media="print">
body {
zoom:75%; /*or whatever percentage you need, play around with this number*/
}
</style>
Since zoom or -ms-zoom doesn't work the way I expected it to on IE8, I ended up fiddling with the font-size and tr sizes. Hopefully MS makes a zoom that works like the Print Scale/Size functionality in the Print window from the browser.
I know it has been many years since this question was asked, but I came across it via a recent Google search. As I also posted here, I discovered that another way you can scale a page for printing is to manually specify the width of the body, like this:
@media print {
body {
min-width: 1000px;
}
}
(This assumes that your content is "responsive" and reacts to you changing the width of your browser window.)
The content of the page will be scaled when printed — a larger number of pixels will make printed content appear smaller, and vice-versa. I've only tested this roughly in Windows Chrome and iPhone Safari, but both of these seem to scale the output so that the entire body fits the width of the printed page.
The benefit of this method is that it's likely to be more consistent across devices than using zoom
.
© 2022 - 2025 — McMap. All rights reserved.