This is a migrated thread and some comments may be shown as answers.

overflow:auto not working in ie8

2 Answers 161 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Feb 2011, 11:18 AM
Hi there,

I am using a div with fixed width and height and also setting overflow:auto. It works all right on ie7, but I do not get a horizontal scrollbar on ie8. I do get the vertical bar wherein the text wraps down

I tried looking upon on your forums but it appears to eb a bug with ie 8

Thanks & Regards

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Feb 2011, 12:40 PM
Hello Mark,

I have tried similar scenario with IE 8 Beta and that worked fine.However I have found It is logged as a bug in the final version of IE8 with no fix. And one hacky CSS workaround is:
pre
{
    max-height: none\9
}

Refer this form for more on this,

Thanks,
Shinu.
0
Mark
Top achievements
Rank 1
answered on 16 Feb 2011, 02:15 PM
Thanks for the reply.

I did find that workaround, but I am not sure how I use it. So if I have a div tag how can I modify it to use pre instead?

<div style="overflow:auto;width:400px; height:400px">

</div>

Thanks
Tags
PanelBar
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Share this question
or