Click to See Complete Forum and Search --> : Iframe inside of an Iframe problem


superddman
03-18-2005, 02:29 AM
Hello,

There are two files: index.htm and content.htm.

Index.htm contains one 500x400 table with a single cell. Inside of that cell there is a 500x400 iframe.

Content.htm contains one 200x100 table with a single cell. Inside of that cell there is another iframe which is 200x100.

The 500x400 iframe links to Content.htm.

Everything works fine except the 200x100 iframe expands automatically to match the 500x400 iframe. I would like 200x100 iframe to stay at its original size.

What could be causing this? Are there some properties of iframe that I should be including?

TIA,
superddman

directorspence
03-18-2005, 03:06 AM
Do you have your "height" and "width" set in the <iframe> tag? Example: <iframe src="?" name="frame" width="200" height="100"></iframe>

superddman
03-18-2005, 08:54 PM
Yes, both iframes have width and height parameters set to the specified dimensions. Both tables use specified dimensions in pixels (not percent).

superddman
03-19-2005, 08:56 PM
So nobody knows why this is happening? Maybe it helps if I say that the smaller iframe is linking to MYSHOUTBOX.com. Could the shoutbox be causing this problem?

PeOfEo
03-19-2005, 11:19 PM
Originally posted by superddman
So nobody knows why this is happening? Maybe it helps if I say that the smaller iframe is linking to MYSHOUTBOX.com. Could the shoutbox be causing this problem?
This is a forum, you cannot expect your feedback to come instantly. It is the luck of the draw, when someone who can answer your question is online.



Ugh nesting iframes... this is an accessibility nightmare!

try setting the height like this: style="height:100px; width:500px;" also, by nature tables will stretch for their content. If you did not house this iframe in a table the iframe might expand.