View Full Version : iFrame and surrounding content box

09-25-2007, 03:55 AM
not exactly sure how to word this understandably, so i think i'll just link the page with the problem and name what i want it to do.


i currently have the middle div tags containing the iFrame which i have all the side links loading into. it's height is set to 750px, but i'd like to know if there's a way to keep the height element in my .css relative, so that i don't have to size the window to my largest file, i'd love for it to size itself automatically to the iframe's contents, with a padding of maybe 15 at the bottom, but i can do that easily enough.

if anyone know's how to do this, if it's not too much trouble if you could not just make it a copy and paste, unless it's simple enough that it shouldn't require explanation, i don't wanna put stuff on my site that i can't understand. except javascript.

ignore the ads in the pages/frames, eventually i'll re-upgrade my account/get my own domain. *edit* also, the page uses exclusively css for ti's templade/design, so it's buggy in firefox, as is the clock script in the top-right window, but all works as intended in ie explorer. i'll be troubleshooting easy fixes later, unless someone also has knowledge on it.

thanks, i know it may be a wall of text >.<

10-11-2007, 08:45 PM
Direct Drive itself has a script that will resize the iframe's hieght... it is compatible in both fx and ie.

Iframe SSI script II (http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm)