Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Defining pagewidth
05-19-2010, 08:11 PM #1
- Join Date
- May 2010
- Thanked 1 Time in 1 Post
Pixels, %, em's and ex's all rely on the screen. But if I'd like to make the iframe fit for A4 paper (±20x30cm), 20cm would seem huge on the screen, so does anyone know a solution?
I'd appreciate it.
05-20-2010, 12:16 AM #2
- Join Date
- Jan 2010
- Burford, Oxfordshire, United Kingdom
- Thanked 39 Times in 39 Posts
I have not done this, but if I were confronted with this problem, this is what I'd do:
Set up separate style sheets for screen and print. [There may be common parts that you could put in a third stylesheet for both screen and print, but lets ignore that part for now.]
In the print stylesheet set the font size and printable area to something that works for A4.
Create some test pages that use the full width of the page and print them using your newly created print stylesheet.
In the screen stylesheet set the font size you want to use on screen and set the width of the screen that is going to be used for your content.
View your test pages. Adjust the width of the content area until you get wrapping occurring in exactly the same place as on your printed pages.