javascript - Get Pixel height of Centimetre unit CSS -


we're writing our own web app , need user have (fairly) accurate visualisation of printed documents on-screen. i'm using centimetre unit in css try , replicate a4 page.

i need work out actual pixel height assigned following:

max-height: 27cm;

is possible in javascript? need pixel height because need compare offsetheight max-height.

well, due screens of differing size, resolution, , ppi, wouldn't possible display real life sized view of page consistent across screens. not unless find size of pixels themselves, not believe possible via js.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -