We help IT Professionals succeed at work.
Get Started

IE7 overflow issues

j_young_80
j_young_80 asked
on
399 Views
Last Modified: 2013-12-08
I am having a problem with IE7 formatting an overflow by default. I've attached a simple test page but I want to turn the overflow OFF for the root element, but have the DIV overflow display. Problem is, turning off the Overflow at the root element seems to dsable it throughout. I've tried turning it on via javascript - aswell as using many different combinations of solutions but none of them give me just the scroll on the DIV.
%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
       html {
overflow:hidden;
}    
    </style>  
</head>
<body>
    <form id="form1" runat="server">
    <div style="overflow:scroll;">
    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
            jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
        jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
            jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd    jkbsdjkfsdjkhfksdjhfjkhsdfjksjkdfsdjkbfjksdbfjkasdbkfbkdjsb
    sdfsdfasdfffffsdfsd
    sdfsdfasdfffffsdfsd
    </div>
    </form>
</body>
</html>

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE