View Full Version : Iframe Not Acting Right!

03-10-2005, 02:43 AM
I know that iframes are old and rarely used anymore but I have an issue. I used tables and put iframe content inside. I make the iframe height and width specific to the size of the frame that will go into it so it will be flush with the window. But although I get my widths tight the height never is right, there is always space below my frame no matter what I do. I notice that this space is left in the table. For some reason my iframe doesnt fill up the table and if I make my framed page bigger the space still shows up at the bottom of the page in the iframe. Can someone tell me a better way to make the content show up in one space without iframes or tell me how to get it to be tight in the space I want.


03-10-2005, 12:52 PM
Not entirely sure whether this'll work but try the following:

<td style="margin: 0; padding: 0;">
<iframe [...] style="margin: 0; padding: 0;">

Obviously add the other attributes that you have with your page, but add the styles and see what happens.

03-10-2005, 03:39 PM
with tables, sometimes spacing becomes a factor. try putting the TD right up to the iframe tags (no return spacing)...