PDA

View Full Version : IE6 horizontal scrolling of doom


Rmpl
03-23-2007, 12:59 AM
I've been hitting my head on the wall all day trying to figure out why IE feels that every page needs a horizontal scroll bar.

URL removed by admin as requested


Go to the website and click on the Summer button on the front page. Notice that the body size fits within the iframe but IE6 still puts in a horizontal scrollbar. Even if I set the width of the target's body to well within the size of the frame, IE6 insists on the horizontal scrollbar. I had to alter my existing layouts on a lot of other pages just so things would look right in IE6. I've searched and couldn't find the fix for this. Can anyone help me? IE6 is quickly becoming the bane of my existence.

koyama
03-23-2007, 04:26 AM
Maybe you'll have to use scrolling="yes" for your iframe. The only disadvantage is that you'll have a persistent vertical scrollbar showing even when it is not necessary.

IE6 has some problems with scrollbars. When it sees that there is too much contents it apparently first adds a vertical scrollbar. Then instead of re-flowing the contents within the slightly smaller space it now 'discovers' that the vertical scrollbar (having a finite width) is chopping off a part of the content. Then it adds the horizontal scrollbar so you have a chance to see the whole content.

On the other hand when you set scrolling="yes" space is always reserved for the vertical scrollbar and you don't get the unnecessary horizontal scrollbar.