Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-20-2013, 04:27 AM #1
- Join Date
- Jan 2013
- Sunnyvale, CA
- Thanked 4 Times in 4 Posts
Retrieving computed pixel values in Chrome and Safari
displaying (on the screen) a letter-size page (8.5" x 11"), users can specify page margins in either cm or in.
When processing the user's selections and redisplaying the user's document on the screen, I need to subtract the margins from the width and height, so that the page remains the same size.
IE and FF automatically return the computed values in pixels whereas Chrome and Safari do not. Is there a quick and painless solution to retrieve computed pixel values when in Chrome or Safari?