Solved

overflow: scroll not working in  IE

Posted on 2011-03-14
7
633 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
Comment Utility
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
Comment Utility
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.
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

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

Expert Comment

by:dwkd
Comment Utility
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
Comment Utility
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now