calls the vertical scrollbar in IE. Why / how to avoid this? Why does this create a scroll bar in IE6, IE7, and IE8? H...">

<applet height = "100%"> calls the vertical scrollbar in IE. Why / how to avoid this?

Why does this create a scroll bar in IE6, IE7, and IE8? How to avoid this?

(I had a real applet, but I found that this highly distorted one gave the same result and helps simplify the test case)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Why vertical scrollbar in IE?</title>


    <style>
        HTML, BODY {
            height: 100%;
        }

        BODY {
            padding:0;
            margin:0;
        }

        /* And yes I can use this, but I'd rather not
        BODY {
            overflow-y: hidden;
        }
        */
    </style>
</head>
<body>
     <APPLET  WIDTH = "100%" HEIGHT = "100%"></APPLET>
</body>
</html>

Above also available http://www.morch.com/download/ieVerticalScrollbars.html

+3
source share
4 answers
applet {
    display: block;
}

To prevent rendering of the applet as an inline element that provides string rendering.

+3
source

Add position: absolute;to the applet style.

+3

99% 98%. reset CSS. overflow-y body. .

0
source

Thing 1 - CSS / overflow

Here are the CSS settings you can work with (if they help): http://www.w3schools.com/Css/pr_pos_overflow.asp

Thing 2 - CSS-erize the scrollbar itself (i.e. turn it completely white or something else for your page. Http://www.draac.com/css/csstricks.html (scroll down)

0
source

Source: https://habr.com/ru/post/1752332/


All Articles