PDA

View Full Version : Positioning an iFrame


mkyle1
04-13-2005, 12:24 AM
Hi,

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

Jim_Shady
04-13-2005, 09:45 AM
iframe?

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

Jim Shady.

domedia
04-13-2005, 02: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>
<br>
<br>
<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>
</td>

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

now got it working

Thanks for the advice

Martin