View Full Version : Iframes


summergrl164
07-18-2003, 03:03 AM
Hey! I have a question about iframes. I have read a lot about them and for the most part understand the basic of it but I'm having a problem "pulling it all together", I guess. I created this layout for my webpage. It's a big picture and then on the right of the picture I lightened a section where I want my iframe to go. My problem is I have used absolute alignment, but for some odd reason I can't get it to align right....

This the exact code I use to align the iframe...

<DIV id="innocence" style="position: absolute; bottom: 100px; width:150px; right: 150px;" align=right></DIV>

If you want to see a visual here is an example of my layout...

LAYOUT I.E. (http://www.geocities.com/puppypaws164/AngelicLayout.gif)

THANKS!

kittycat
07-18-2003, 03:14 AM
Try positioning it from the top and left instead, it will probably work better for what you're trying to do.

Alcy
07-18-2003, 03:16 AM
If your image isn't aligned to the bottom, you should align your iframe to the top, because the "bottom" will be different on different resolutions.

<body topmargin="0" leftmargin="0">

<img src="AngelicLayout.gif">

<DIV id="innocence" style="position: absolute; top: 420px; left: 185px;">
<iframe width="360" height="300"></iframe>
</DIV>

</body>

summergrl164
07-18-2003, 03:40 AM
thank you so much! it worked!

one more question though now that the iframe is aligned correctly how can I keep the lighter section as a fixed backround?