IE div width + scrollbar

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2011-02-22T21:25:53Z Indexed on 2011/02/23 15:24 UTC
Read the original article Hit count: 179

Filed under:
|
|

I have a modal UI in my web app that necessitates a fixed layout design. After much fussing, I decided absolutely positioned child elements was the way to go. However, I have one div that conditionally requires a vertical scrollbar (if there's too much content). When this scrollbar is added, the width of the div seems to vary between IE 7 and IE 8.

IE8 standards mode:

enter image description here

IE7 standards mode:

enter image description here

I haven't even tested for IE 6, but I'm sure it's even funkier. What's the simplest, least painful way to address this to arrive at a consistent UI in all major browsers?

© Stack Overflow or respective owner

Related posts about html

Related posts about css