Ahhh Internet Explorer. I've been banging my head against the wall for a couple of hours, and thought it might be time to ask the internets.
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.
This is how I have it centered:
#container{width:960px; margin:0 auto;}
Here is what I have tried to fix it (needless to say it didnt work):
if (navigator.appName.indexOf("Microsoft")!=-1) {
document.getElementByID("container").style.marginLeft=(((document.body.offsetWidth - 960)/2));
}
The page: http://www.roughgiraffed.com/barrandbarrbags/press.html
Thank you ahead of time! :-)