View Full Version : iFrame 100% Height Prob

03-06-2004, 06:10 PM

Been browsing the forum trying to find an answer of how i can get my iFrame to display a whole web page with out scroll bars?

I need to link a forum to a table cell on my site:


The above i used a height="2300" but it doesnt work for pages bigger for obvious reasons. I need the iFrame to adjust to each page it loads in the forum.

Ive also tried the follow:
<body onLoad="parent.document.all['oIframe'].style.height=window.document.all['oDiv'].offsetHeight";">

<table width="100%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="006bad" id="Main">
<td align="left" valign="top">

<div id="oDiv" align="left">
<iframe id="oIframe" src='http://rally.motorsportforum.com/forums/' width="100%" scrolling="no" frameborder="1">

Any help would be very appreciated, or is there another way other than iFrames to solve my prob?



P.s the site is under construction

03-11-2004, 01:55 AM
Removing the scrollbars in an <iframe> is easy.

Use <iframe style="overflow:auto;" scrolling="no"></iframe>

This is the iframe reference page at W3schools.com


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum