Forum Moderators: not2easy
I have some diagrams (png) that can get quite large and I have users that need to be able to print them. They print, but on multiple sheets of paper. What I am trying to do is scale them to 1 sheet. Setting the height/width properties of the IMG tag worked great but I only want the images smaller than a sheet of paper to be scaled.
Any ideas?
Jesse
To use a print style sheet:
<link rel="stylesheet" type="text/css" media="print" href="print.css">
img { max-width: 60em; max-height: 80em; }
You might be able to even use % and just say max-width: 100%
I'd poke around with variants like this. I've had good luck laying out images that will scale properly in text columns this way. (Usual caveat: not all browsers support max-width; I use Mozilla, which does.)
Jesse