View Full Version : Positioning Iframes


eeek
05-04-2003, 06:23 PM
Is there a way to absolute position an iframe?

Lemon Squash
05-04-2003, 06:39 PM
<div style="position:absolute; top:0; left:0">
Iframe code goes here
</div>

Elentari
05-05-2003, 02:05 AM
Alternatively, you can just add the code to the iframe

<iframe src="iframe.html" name="iframe" width="450" height="515" style="position:absolute; left:30; top:30"></iframe>

Xiphias
05-05-2003, 03:20 AM
some browsers don't add pixel values, and may mutilate the code. try this:

<iframe src="iframe.html" id="iframe" width="450" height="515" style="position: absolute; left: 30px; top: 30px;"></iframe>

minay
05-08-2003, 05:55 AM
does this work with regular frames?

starlet
05-08-2003, 02:25 PM
No, you have to mess with the numbers in the frames code to 'move' real frames.