views:

231

answers:

2

Does anybody know what is the resolution that will be used to render a printed HTML page. I'd like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know this value will change if I set the zoom value (IE and FF), but I am interested in the default value (when zoom is at 100%).

Also, is there any way of controlling this resolution from CSS?

Thanks

+2  A: 

either 72ppi or 96ppi, depending on combination of OS/browser. Margins are an issue too.

If this is for a site with login users, get them to set their resolution, or try to guess from the browser. Remember that anyone can change this setting on their computer.

Luke Schafer
+1  A: 

I think you can control the size, but not the resolution, of the printed page. Relevant units of size, for print css, would include

  • Centimetres (cm)
  • Millimetres (mm)
  • Points (pt)
  • Pica (pc)
  • Inches (in)
  • M (em)
  • X (ex)
David Thomas
Pixel isn't relevant?
Justin Johnson
For print? I'm honestly not sure; but I don't think that pixels are transferable to a medium that doesn't use pixels. I realise that print-media does use such measurements as ppi (pixels per inch) in discussion of printer-capabilities, but directly relevant? I'm not saying they're *not* relevant, just that I've never used them, nor *see* that they're useful in the medium. Experience and anecdote may teach me otherwise, though...
David Thomas