Welcome to WebmasterWorld Guest from 34.226.234.20

Forum Moderators: open

Message Too Old, No Replies

Iframes resizing in FireFox

Why doesn't FF iframe resize like IE

     
1:54 pm on Feb 23, 2006 (gmt 0)

New User

10+ Year Member

joined:July 26, 2005
posts:12
votes: 0


Hi All,
Could anyone tell me why the iframe in FF will only resize until it is about 200px high and then stop. IE will resize the iframe until it is a basically a straight line. Here is my code below:

<html>
<head>
<title>resize iframe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


</head>
<body>
<table style="height:100%; width:100%;" border="1">
<tr>
<td style="height:50px;">
test
</td>
</tr>
<tr>
<td>
<iframe frameborder="yes" src="test2.htm" width="100%" height="100%" scrolling="auto"></iframe>
</td>
</tr>
</table>
</body>
</html>

I am sure you have noticed that it is in quirks mode unfortunately after much huffing and puffing for many days this is the only way i can get my html tabs and content to look (and resize without loads of scrollbars) the same in IE and FF (IE Grrr). My only problem now is the iframe which the example code above emulates.

Any ideas would be great, Cheers All.

2:36 am on Feb 28, 2006 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


When testing your sample markup, the
iframe
expands vertically to the bottom of the window when in quirks mode, and only to approximately 200px when in standards-compliance mode. In the latter mode, you can make the browser use the full height of the browser window if you declare the height of the
html
and
body
elements to 100%.

Are you saying that the

iframe
does not fill the spece even in quirks mode?
2:01 pm on Feb 28, 2006 (gmt 0)

New User

10+ Year Member

joined:July 26, 2005
posts:12
votes: 0


Hi,
Thanks for your reply. It's not that the iframe will not take up the whole page (height:100%). The problem is when I resize the page past the point on which the iframe should be smaller than 200px (approx) and therefore show scrollbars (providing the content has gone beyond the bottom of the page) it doesn't.

The iframe stops resizing and stays at a fixed position approx 200px high. This only happens in FF and not in IE providing IE is in Quirks mode.

Cheers,
Andy.

2:43 pm on Mar 3, 2006 (gmt 0)

New User

10+ Year Member

joined:July 26, 2005
posts:12
votes: 0


Hi,
It looks as if no one can help me with this problem in this forum. Could anyone advise where my question might be answered?

Cheers.

5:27 am on Mar 5, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Maybe there's something in the included page triggering that behavior?
Seems odd that it would, but I'm just fishing for solutions here.
12:20 pm on Mar 8, 2006 (gmt 0)

New User

10+ Year Member

joined:July 26, 2005
posts:12
votes: 0


Hi,
I have read this post in Google Groups and it does not directly answer the problem but does explain that an iframe could not be considered as tabular data (which is true) and that it is probably best not to use tables to contain iframes.

Link: [groups.google.co.uk...]

If the iframe is outside of the table it resizes perfectly.

Thanks for your help.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members