[thelist] iframe tag cross-platform problems

Hardacker, Andrew Andrew.Hardacker at Compuware.com
Tue Mar 19 10:26:01 CST 2002


<snip>
What I *want* to do is to have the iframe set at 100% to completely fill the
balance of the page. However, when I set the iframe height="100%" it falls
off the bottom of the page - this would be ok *if* the valign="top" worked
with the iframe, but it doesn't appear to.

see http://www.averra.com/web_examples/iframes_tst1.htm
</snip>

Janice,

I've never used iframes in table cells but I usually find I have to size
them manually onload. This seems to work (at least on IE6 and N6/Windows).

Add this function to the body unload expression:

function sizeIFrame() {
  var oIF = (document.getElementById) ? document.getElementById("content") :
document.all.content;
  var h = (document.body.clientHeight) ? oIF.parentElement.clientHeight :
oIF.parentElement.innerHeight;
  oIF.style.height = h + "px";
}

HTH

Andy Hardacker
http://hardacker.com/



The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.




More information about the thelist mailing list