Hello all,
I am trying to make a div on my website dynamically resize to to fill up any empty space left over on the users screen.
The code I am using now that works perfectly for Firefox is
I know IE does not recognize minHeight property but I have tried other ways to accomplish my goal but no luck. Here is an example of what is going on. View this page in IE and Firefox and see the difference.
Thanks for any replies!
I am trying to make a div on my website dynamically resize to to fill up any empty space left over on the users screen.
The code I am using now that works perfectly for Firefox is
Code:
function initialize(){ frame = document.getElementById('frame'); headerHeight = document.getElementById('top').offsetHeight headerMargin = 10; footerHeight = document.getElementById('footer').offsetHeight footerMargin = 16; frameBorder = 2; height = headerHeight + headerMargin + footerHeight + footerMargin + frameBorder; frame.style.minHeight = document.height - height; }
Thanks for any replies!
Comment