• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

overflow: scroll not working in IE

I have this DIV, and it work only in Chrome and Firefox, in IE the scrolls is not working, the content expends more then 960px the width.

Here is the DIV that i put in

div#abc {      max-width: 960px;
      overflow: scroll;

1 Solution
Mark BradyPrincipal Data EngineerCommented:
change it to "overflow:auto";

and it should automatically scroll once it goes over the 960px width.
Mark BradyPrincipal Data EngineerCommented:
Actually I think it is automatically by default set as "auto so you could remove that line altogether.
David S.Commented:
What mode is IE rendering the page in? That feature requires "standards mode" of IE7 or newer. (If you don't know how to check that, please post a link to an example page.)

> Actually I think it is automatically by default set as "auto so you could remove that line altogether.

No. The default value of the "overflow" property is "visible" for most elements, including <div>s.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

mt1845Author Commented:
I tried to put "overflow:auto"; its not working
try overflow-y:scroll;

and test it also in quirks mode by replacing your doctype with something like this


..after you changed to quirks it should work in ie7
(ie6 doesn't work at all i believe)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now