Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't my webpage scroll in Internet Explorer 8?

So I've spent a significant amount of time coding and designing this webpage, and it works perfectly in every browser I've tested it in: IE7, IE9, Firefox, Chrome, Safari. But when I view the webpage in IE8 (and only IE8), the vertical scroll is disabled. The scroll bar is there all right, but it's turned off and I can't use it or the mouse scroll wheel.

I'll post the code for the webpage if I absolutely have to, but first I wanted to see if anyone had ever heard of this happening before or had any initial thoughts.

like image 238
BCXtreme Avatar asked Feb 06 '11 02:02

BCXtreme


2 Answers

Okay, I figured this out. If you put height: "100%"; in the html tag of your page's CSS stylesheet, it will break scrolling in IE8, but other browsers will still work. Go figure.

like image 113
BCXtreme Avatar answered Feb 08 '23 20:02

BCXtreme


Here is a hack way of getting the scrollbar to work with a height of 100%. Not the best solution but it now scrolls in IE8.

html {
    overflow-y: hidden\9;
}
html, body {
    height: 100%\9;
}
body {
    overflow-y: scroll\9;
}
like image 35
johnferrie Avatar answered Feb 08 '23 18:02

johnferrie