title: Page will not center in Internet Explorer
body: <p>When putting someones old javascript function on my page it makes it no longer center in IE(7).  What I think is causing it is the page width is getting superficially longer as a result of the script.</p>
  
  <p>This is how I have it centered:</p>
  
  <pre><code>#container{width:960px; margin:0 auto;}
  </code></pre>
  
  <p>Here is what I have tried to fix it (needless to say it didnt work):</p>
  
  <pre><code> if (navigator.appName.indexOf("Microsoft")!=-1) {
    document.getElementByID("container").style.marginLeft=(((document.body.offsetWidth - 960)/2));
   }
  </code></pre>
  
  <p>Thank you ahead of time! :-)</p>