View Full Version : Positioning an iFrame

04-12-2005, 11:24 PM

please can someone advise how to position an iframe so that it is always locked to a certain part of a webpage. I have created the below page and want to position the iframe in the center box (marked on the below page IFRAME Here.) The page is designed using a table layout (Centered) for resolution 800 x 600. When I try to position the frame in DW it looks ok, but when I preview it in the browser it goes all to the side.

http://www.martinkyle.pwp.blueyonder.co.uk/Tara/index.htm ('http://www.martinkyle.pwp.blueyonder.co.uk/Tara/index.htm')

Thanks, Martin

04-13-2005, 08:45 AM

Guess I won't be helping much here then..... :P

Jim Shady.

04-13-2005, 01:36 PM
The trick is not to position the iframe at all, just stick it in there with no positioning, and it will stay there.
So replace this code <td bgcolor="#000000" height="392" valign="top"><div align="center">I<br>
<span class="style5">IFRAME HERE </span> </div></td>
With this (src needs a url of course):
<td bgcolor="#000000" height="392" valign="top">
<iframe src="#" width="100%" height="392"></iframe>

04-14-2005, 03:42 PM
:D Great,

now got it working

Thanks for the advice