joerivanveen
05-19-2010, 07:11 PM
Hi,
I just made an iframe RTF editable by using some JavaScript, and a button to print the iframe's content. What I would like to know is if there is any way to specify an iframe's (or div's) width using CSS, so that line breaks occur on the same spot on the printed version as they do on the screen.
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.
I just made an iframe RTF editable by using some JavaScript, and a button to print the iframe's content. What I would like to know is if there is any way to specify an iframe's (or div's) width using CSS, so that line breaks occur on the same spot on the printed version as they do on the screen.
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.