View Full Version : Iframe positioning on a center-fixed background?


ragebox
05-25-2003, 07:45 AM
I have a question about the positioning of iframes that is really getting me puzzled. See, I used this code to fix my background in the center of my browser window (no matter what the size):

<style type="text/css">
<!--
body{background-image:url("background.jpg");
background-attachment:fixed;
background-repeat:no-repeat;
background-position:center;}
-->
</style>

But I've also got an iframe that sort of fits into the background and I want it to consistantly appear there no matter what the resolution or size of the window. Is there a way to position the iframe so that it will always appear in the correct spot in relation to the bg or is this not possible at all?

Thanks for any help or answers I may get, and I'm sorry if this question is a little confusing. Also, I appoligize if this is a repeat.

ragebox
05-25-2003, 08:09 AM
Or as an afterthought, I guess I could always just go with the whole make-the-page-in-a-popup-window solution, though I know some people aren't a huge fan of those. But if it's the only way to make it work...

Still, if anyone can find a solution for my original question, it would be most appreciated :).

Elentari
05-25-2003, 11:42 PM
You could create a table with center alignment that fits your whole page and put your iframe code in there.