I have a 3-row div layout with the footer at the bottom of the page, but I want the content div to always be full size from the header to the footer. Inside the content div, there is also an iframe that I want to always be at 100% height of the content, then fill the space between the header and footer.
<body>
<div id="container">
<div id="header">
Logo
</div>
<div id="content">
<h2 id="appname"><img alt="App" src="/images/b_nextpage.png"> Home</h2>
<iframe class="appcont" src="" width="100%" height="100%" name="youriframe" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="yes" noresize></iframe>
</div>
<div id="footer">
<button name="menu" type="button" id="menuopen"><img alt="App" src="/images/s_process.png"> <b>Menu</b>
</button>
</div>
</div>
</body>
This is my CSS:
html, body {
font-family: sans-serif;
padding: 0em;
margin: 0em;
color: #444;
background: #fff;
text-align: center;
height: 100%; /* Important */
width: 100%;
}
#container {
margin: 0px auto;
text-align: center;
height: 100%;
}
Thank you in advance