• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

IE screenSize

July 9, 2011 by Webhead

Problem:

Apparently no one cares about a user’s actual screen resolution.  Usually I don’t too, but in this case I do.  In creating a home page with an image as the background and expands as the user expands their window, the overflow is hidden.  However for users with a low resolution this means that they cannot scroll to see what else is on the page.

Solution:

The workaround for this is to detect the users screen resolution and change the css overflow attribute on the html, body tags to be “auto”.  I have two monitors, one at 1600×1200 and another at 1024×768.  On firefox and chrome the height values match with the javascript property screen.height.  On IE the value is always 1200.  I’m guessing it’s because the 1600×1200 monitor is my primary monitor.

Filed Under: Coding Tagged With: css, IE crap, javascript

Primary Sidebar

Topics

502 apache apple bluehost bootstrap buddypress chrome cloudways cms css debug drupal eCommerce firebug firefox git goDaddy google google analytics google maps hacked hosting htaccess html html 5 icons IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php tinymce wordpress wpengine yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools