the_oliver Posted August 11, 2007 Share Posted August 11, 2007 Hello. Im having some trouble making an iFrame expand to 100%. The code im using is the following: <td width="1" valign="top"><img src="images/vertical_devide.jpg" width="2" height="250" /></td> <td width="600" align="left" valign="top"> <!--- DATA FRAME ---> <iframe id="DETAILFrame" name="DETAILFrame" style="width:600px; height:100%; border: 0px" src="dhost.php?id=0"></iframe> <!-- END ---> </td> However i still get a scroll bar on the side. (after about 600px i guess). The strange thing is that if i change <img src="images/vertical_devide.jpg" width="2" height="250" /> to <img src="images/vertical_devide.jpg" width="2" height="900" /> the iframe will expand to fill its contents (which is never more then about 850px. Not quite shore where im wrong! Thanks! Link to comment https://forums.phpfreaks.com/topic/64415-iframe-not-expanding/ Share on other sites More sharing options...
NArc0t1c Posted August 12, 2007 Share Posted August 12, 2007 Try the height element instead of style. Example: <iframe id="DETAILFrame" name="DETAILFrame" height="100%" src="dhost.php?id=0"></iframe> Link to comment https://forums.phpfreaks.com/topic/64415-iframe-not-expanding/#findComment-321836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.