Hi SO,
How do you get an iframe to fill up the height of the screen minus a 33px footer space at the bottom? I need the scrollbars of the iframe (both up and down arrow) to show. And it must be without Javascript (so it can degrade pleasantly :).
(The only thing I've found on SO is to use padding-top
which doesn't seem to work in my case):
<body>
<div style="position: fixed; width: 100%; height: 100%; bottom: 33px;">
<iframe frameborder="0" noresize="noresize" src="http://google.com"
style="position: absolute; width: 100%; height: 100%; padding-top: 33px;">
</iframe>
</div>
<div style="height: 33px; bottom: 0px; position: absolute; background: red;">
/* Footer Content */
</div>
</body>
Thank you all!