I would like to make a very simple page with a fixed height toolbar and below an iframe that should fit exactly the remaining part of the page stretching accordingly.
I set iframe height to 100%, but this makes the iframe to go under the browser’s statusbar, as you can see [B]the lower part of the iframe’s vertical scrollbar gets hidden under the browser.
This happens both in IE7 and FF3.
Any ideas are welcome.
[URL=”http://www.vanylla.it/test/test.html”]You can test page here
or see code below: ?
[CODE]
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Test</title>
<style type=”text/css”>
html, body {margin: 0; padding: 0; border-width: 0; height: 100%;}
html, body {overflow: hidden;} /* overflow: hidden because we don’t want browser to show its scrollbars. */
#toolbar {height: 50px; background-color: #e7e9ec;}
#application_area {height: 100%; width: 100%;}
</style>
</head>
<body>
<div id=”toolbar”>Toolbar</div>
<iframe id=”application_area” src=”somepage.html” frameborder=”0″ scrolling=”yes”></iframe>
<!– I set scrolling=”yes” so you can always see the scrollbar, and you can see that the lower part of the scrollbar disappears under the browser. –>
</body>
</html>