I would like to replace a frameset page with a page with a div (menu) and an iframe (content).
I’m trying the code below but the iFrame occupies the entire window space, including the menu, creating a scroll bar.
How to make the iFrame cover only the remaining space of the window?
jsfiddle -> http://jsfiddle.net/Q3UV2/
CSS
body {
background-color:Black;
margin:0px;
overflow:auto;
}
#divMenu {
top:0px;
left:0px;
height: 100px;
width:100%;
background-color:Gray;
}
#ifrContent {
position:absolute;
width:100%;
height:100%;
}
HTML
<body>
<div id="divMenu">Menu</div>
<iframe id="ifrContent" frameborder="0" src="http://www.ebay.com/"></iframe>
</body>
CSS
HTML