Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 02-09-2005, 01:25 PM
  #1
xeonaphobe
Novice (Level 1)
 
Join Date: Feb 2005
Location: Scotland
Posts: 4
iTrader: (0)
xeonaphobe is on a distinguished road
iFrame/div problem in IE and Firefox

Hi,

I'm brand new to this forum and hope you can help me with this problem i've been having.
Here is the HTML i've been using;

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="red.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="red.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 suggests would be fantastic!

Cheers,
Neil
xeonaphobe is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 01:33 PM
  #2
Pegasus
Mama Hen
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35 South of Santa Claus
Posts: 26,546
iTrader: (0)
Pegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud ofPegasus has much to be proud of
Have you tried giving the frames each a different name? I don't believe you can have two things called the same thing.

Peg
Pegasus is online now   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 01:46 PM
  #3
xeonaphobe
Novice (Level 1)
 
Join Date: Feb 2005
Location: Scotland
Posts: 4
iTrader: (0)
xeonaphobe is on a distinguished road
Thanks for the speedy response

Tried what you suggest, but it had no effect. I have a funny feeling it's down to the way IE and firefox handle tables, as I've never had to place iframes within a table before.

Anything else you can suggest?
xeonaphobe is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 02:04 PM
  #4
_Aerospace_Eng_
The CSS Master (somewhat)
 
Join Date: Dec 2004
Location: In a galaxy far far away...
Posts: 11,146
iTrader: (0)
_Aerospace_Eng_ has disabled reputation
not sure y you are using a table for this when a div can do the job just as well but if u are going to use a table at least code it correctly
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="MAIN1"></iframe>
 </div>


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


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


</tr>
</td>
</TABLE>
the </tr> goes after the </td> see if that helps
__________________

76 invites left. PM me for a Gmail invite along with email addy.
Why we won't help you .::. Web Developer's Handbook .::. Why Tables for Layout is Stupid?
_Aerospace_Eng_ is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 02:10 PM
  #5
xeonaphobe
Novice (Level 1)
 
Join Date: Feb 2005
Location: Scotland
Posts: 4
iTrader: (0)
xeonaphobe is on a distinguished road
aha yes i noticed that just after i posted it :-S Unfortunatly that didn't fix it.
I don't really have that much experience so if there's a way to get around this without a table, then please suggest it.

I was really only using the table to keep the frames in place when the browswer window is resized. Is there a better way to do this? Removing the table would probably solve my problem.

Cheers,
Neil
xeonaphobe is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 02:15 PM
  #6
_Aerospace_Eng_
The CSS Master (somewhat)
 
Join Date: Dec 2004
Location: In a galaxy far far away...
Posts: 11,146
iTrader: (0)
_Aerospace_Eng_ has disabled reputation
Code:
 <div style="background-image:url(pie.jpg);width:800px;height:600px;">
<DIV style="position: relative; top:290px;left:210px; width:400px; height:225px">
 <iframe src="red.htm" scrolling=no frameborder=NO height=225 width=400 name="MAIN1"></iframe>
 </div>


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


<DIV style="position: relative; bottom:375px ;left:625px; width:110px; height:120px">
 <iframe src="red.htm" scrolling=no frameborder=NO height=120 width=110 name="MAIN3"></iframe>
</div></div>
when using css to define measurements u must give what type of measurement or else each browser will read by default and try to pick the right one i think FF defaults to px and IE may default to pts not sure, see if that works *NOTICE I GOT RID OF THE TABLE*
__________________

76 invites left. PM me for a Gmail invite along with email addy.
Why we won't help you .::. Web Developer's Handbook .::. Why Tables for Layout is Stupid?
_Aerospace_Eng_ is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 02-09-2005, 02:19 PM
  #7
xeonaphobe
Novice (Level 1)
 
Join Date: Feb 2005
Location: Scotland
Posts: 4
iTrader: (0)
xeonaphobe is on a distinguished road
woo! :)

That's fantastic. Exactly what I was looking for

I never really thought much of the table anyways

Thank you very much!

Neil
xeonaphobe is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
KEEP TABS
SPONSORS
 
Boxedart

 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 12:40 AM.

   

Mascot team created by Drawshop.com | Web Hosting

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.