Solved

overflow: scroll not working in  IE

Posted on 2011-03-14
7
642 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

809 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