Solved

overflow: scroll not working in  IE

Posted on 2011-03-14
7
641 Views
Last Modified: 2012-05-11
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;

      
      
}
0
Comment
Question by:mt1845
7 Comments
 
LVL 20

Accepted Solution

by:
Mark Brady earned 500 total points
ID: 35134093
change it to "overflow:auto";

and it should automatically scroll once it goes over the 960px width.
0
 
LVL 20

Expert Comment

by:Mark Brady
ID: 35134100
Actually I think it is automatically by default set as "auto so you could remove that line altogether.
0
 
LVL 42

Expert Comment

by:David S.
ID: 35134438
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.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:mt1845
ID: 35134897
I tried to put "overflow:auto"; its not working
0
 
LVL 4

Expert Comment

by:dwkd
ID: 35139744
try overflow-y:scroll;
and/or
overflow-x:scroll;


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

<!DOCTYPE html PUBLIC>

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



0
 
LVL 4

Expert Comment

by:dwkd
ID: 35139764
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS issue 8 33
Only three borders showing on image 5 20
Outlook opens HTML email as text 4 22
Html Table looping 4 6
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question