print css: fit in one page

Posted by user281521 on Stack Overflow See other posts from Stack Overflow or by user281521
Published on 2010-03-12T18:53:36Z Indexed on 2010/03/12 18:57 UTC
Read the original article Hit count: 362

Filed under:
|
|
|

Hi. In my page there's only one image. Kind of 1500x3000 px.
In the printer, I need that this image's maximum width to be the width of the page, so I did: width 100% in the css, and it works.
But the height... the old bullshit of height 100% will never work. Because it always will be 100% of the parent container, then someone must have height defined. Or html or body.
So, my question is: make this image fit in one page.
Any ideas?

© Stack Overflow or respective owner

Related posts about css

Related posts about print