View Full Version : Positioning IFrames


BanedExistence
07-04-2003, 04:00 AM
How do I position IFrames on a page? I have this big iframe that is going to hold the main content of the page I'm building.
You can look at the site here: http://www.geocities.com/krankhaftmanor/index.html

I still have a lot of editing to do and only the first page is created, but I need to know how to position the iframe between the logo and menu bar before I continue.

kittycat
07-04-2003, 04:10 AM
style="position: absolute; left: ##px; top: ##px;"

Add that to your iframe code, and change the ## to the numbers you need to put it in the correct position.

BanedExistence
07-04-2003, 12:58 PM
You're awesome! Thank you! ^_^

BanedExistence
07-04-2003, 01:28 PM
Or maybe not....it didn't work. What's wrong? This is the code I used:
<iframe src="main.html" name="Main" width=595 height=390 style="position:absolute; left: 165px top: 105px border:2 solid #FF0000"></frame>

Ravie
07-04-2003, 02:13 PM
<div id="inlineframe" style="position: absolute; left: 165px; top: 105px;">
<iframe src="main.html" name="Main" width=595 height=390 border:2 solid #FF0000">
</frame>
</div>

BanedExistence
07-04-2003, 02:40 PM
It worked this time! Thanks! I just have to fix the px because I got it wrong...