mt1845
asked on
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;
}
Here is the DIV that i put in
div#abc { max-width: 960px;
overflow: scroll;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually I think it is automatically by default set as "auto so you could remove that line altogether.
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.
> 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.
ASKER
I tried to put "overflow:auto"; its not working
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)
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)
maybe this helps: http://www.quirksmode.org/css/quirksmode.html