I have a problem that seems to be around for quite some time, but I haven't seen a proper answer anywhere yet.
See the following :
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <body>
- <div id="container" style="overflow:auto;width:100px;height:100px;position:relative">
- <div id="A" style="width:50%;height:150px;background-color:red;">A</div>
- <div id="B" style="position:absolute;left:50%;top:0px;width:50%;height:150px;background:gray">B</div>
- </div>
- </body>
- </html>
On IE, the width of A seems to be bigger because part of B is overlapped by the scrollbar. In effect, the width of A and B is 50% of the div container and doesn't take the scrollbar width in account.
Is there any way to make IE behave like firefox ?
Thanks,
Yohann