Min-width, max-width, width. Nothing works in IE8 on body tag

This is my webpage that does not work in IE8, but works in FF 3.6.4 and Opera 9.63: -

<html>
    <head>
        <style type="text/css">


            body{
                max-width:10002px;
                min-width:3072px;
                width:10002px;
                margin:0px auto;
                background:#293231;
                height:100%;
                padding:0px;
            }


        </style>
    </head>
    <body >


    </body>
</html>

There is no scroll bar at the bottom of the page in IE8

+3
source share
2 answers

You must add the declaration of your declaration to your page - this will make sure that most browsers behave as close as possible. At the very least, this will eliminate one class of potential problems.

In most cases, when it comes to scrollbars, they will appear only when the content is wider / higher than the client display area, regardless of CSS rules.

+6
source

max-width min-width, width, . min-width , width . , max-width , width .

:

div.yourdiv {
    max-width: 300px;
    min-width: 100px;
    width: 50%;
}

div 50% , 300 100 .

+5

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


All Articles