Forum Moderators: open

Message Too Old, No Replies

iFrame/div problem in IE and Firefox

         

xeonaphobe

8:02 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Hi,

I've been having a few problems setting the positions of three iframes i'm using. Here is the code;


<BODY>
<table border="0" background="pie.jpg" height=600 width=800>
<tr>
<td>

<DIV style="position: relative; top:290;left:210; width:400; height:225">
<iframe src="red.htm" scrolling=no frameborder=NO height=225 width=400 name="MAIN"></iframe>
</div>

<DIV style="position: relative; bottom:225 ;left:65; width:130; height:160">
<iframe src="green.htm" scrolling=no frameborder=NO height=160 width=130 name="MAIN"></iframe>
</div>

<DIV style="position: relative; bottom:375 ;left:625; width:110; height:120">
<iframe src="blue.htm" scrolling=no frameborder=NO height=120 width=110 name="MAIN"></iframe>
</div>

</tr>
</td>
</TABLE>

The problem I'm having is that the 3 different iframes are positioned differently in Mozilla and IE. I can't understand why this is, as i've used iframes before and they've appeared in the same position in both browsers.
I really need to keep it enclosed within a table to stop the frames moving about when the user resizes the browser window.

Any suggestions would be fantastic!

Cheers,
Neil

xeonaphobe

8:23 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



ah never mind! Someone just pointed out that I should do away with the table altogether, and put px in front of the position values. It was the table that was causing all the problems.