views:

45

answers:

2

My HTML page has extra width, but only in IE7. I get horizontal scroll bars even though all the content of the page seems to fit in the browser window.

Take a look:

+2  A: 

I had the same problem, all you need to do is add this to your css:

#footer-widgets { overflow: hidden; }

The cause might be an incorrect float/clearing, it definitely occurs in the div#footer-widgets, if you set it to display: none; the problem disappears ;)

sled
By the way, I recommend using IE8 in compatibility view (renders page like IE7 does) because you can use the IE Developer Toolbar and analyze your code step by step.
sled
A: 

Its probably due to the Microsoft Internet Explorer box model where measurements apply to the inner content rather than the outter dimensions of the html element.

mP
At the risk of looking stupid given that I haven’t figured out what the problem is, it’s definitely not a box model thing. The HTML of the page should put IE7 is Standards Mode, and IE7 doesn’t have the old Microsoft box model.
Paul D. Waite
The page listed by faressoft has a transitional doctype, which is not a strict and hence the microsoft box model.
mP