Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

CSS height:100% not working in Internet Explorer

$
0
0

I have an ASP.NET webapp with mastpage an content pages:

in CSS I use :

html,body, form
{
 margin:0;
 padding:0;
 height:100%; 
 }

div#container
{
 ; 
 margin:0 auto; 
 width: 1200px;
 
height:auto !important;  
 height:100%;

 min-height:100%; 
 
}

in masterpage I use:

<body>       
       <form runat="server">   
               <asp:Panel ID="Panel2" runat="server">      
                       <div id="container">
                               <div id="header" />                  
                               <div id="content" />
                               <div id="footer" />              
                        </div>

             </asp:Panel>                                       
        </form>  
</body> 
</html>

 
In Firefox and Chrome resizing works properly; the <div id="container"> is streched to 100% if i resize the window.

In IE it doesn 't do, it is not pushed to bottom.

If I remove height:auto !important;  from CSS file and resize or zoom-in it moves over the controls on the Website when resizing or zooming

How can I fix it, I tried a lot CSS seting, but  without any success; but for Chrome and Firefox it works perfect.

best wishes



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>