Style Sheets by Resolution 2

By Bob Pearson on Jul 5, 2005


Loads a style sheet depending on the user’s screen resolution. This updated version allows for browser window size to govern text size and background image size for high-resolution displays.


  • Created by: Bob Pearson
  • Web Site:
  • Posted: July 05, 2005

Source Code

Paste this source code into the designated areas.

External file

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


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