Page-Details : Size Wisely

By Patrick Hunlock on Feb 7, 2007


Use this script in your onload events to kick-start your Web pages with the right relative font size. It checks the screen resolution (not the browser size) and sets the base ’em’ size accordingly.


  • Created by: Patrick Hunlock
  • Web Site:
  • Posted: February 7, 2007

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: sizeWisely.js


Paste this code into the HEAD section of your HTML document.