Forum Moderators: open

Message Too Old, No Replies

Iframes resizing in FireFox

Why doesn't FF iframe resize like IE

         

Holloway

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

10+ Year Member



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.

encyclo

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

WebmasterWorld Senior Member 10+ Year Member



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?

Holloway

2:01 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



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.

Holloway

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

10+ Year Member



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.

DrDoc

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

WebmasterWorld Senior Member 10+ Year Member



Maybe there's something in the included page triggering that behavior?
Seems odd that it would, but I'm just fishing for solutions here.

Holloway

12:20 pm on Mar 8, 2006 (gmt 0)

10+ Year Member



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.