![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, Internet Explorer (6 and 7) confounds me with inconsistent scrollbar behaviour. I use three DIVs for creating a three row layout. The second DIV has overflow set to auto. Failing to get a fluid layout only applying CSS, I use Javascript to adapt the second DIV's height so that all three DIVs fit in the browser window. Usually scrollbars appear on the second DIV. However, if the user increases the browser window width (until content fits) the x-scrollbar is unnecessary and thus should disappear. Instead, depending on the browser window width at the time the document was loaded the x-scrollbar stays. I think it's best explained using an example. So please see this stripped down version of the original page where I first encountered the problem: http://14mb.de/u/dkabs/testcase_ie_resize.html |
#3
| |||
| |||
|
| http://14mb.de/u/dkabs/testcase_ie_resize.html (a) Why use a transitional document type - wouldn't you be better off using strict? (See the Margin: auto thread) |
|
(b) Does this really do what you claim it does? !--[if lte IE 6]><style #Content { width:100%; /* prevents wide content from stretching div horizontally } /style><![endif]-- |
|
I also notice that you are not explicitly setting margin, padding, and border on the body, so you will get whatever IE's default is in that browser |
![]() |
| Thread Tools | |
| Display Modes | |
| |