overflow:auto not working in ie8

3 posts, 0 answers
  1. Mark
    Mark avatar
    64 posts
    Member since:
    Nov 2009

    Posted 16 Feb 2011 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Feb 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    64 posts
    Member since:
    Nov 2009

    Posted 16 Feb 2011 Link to this post

    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
Back to Top