Forum Moderators: open

Message Too Old, No Replies

iframe height

Any way to spec so height is 100% of content

         

jimbeetle

5:05 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've been playing around with iframes to use with one of the affiliate programs I promote and think that using them would work nicely, except...

I'd like the copy on the pages in the iframe and the surrounding page to be seamless, no scrollbars if I can get away with it.

The copy in the iframe pages is of differing lengths. As far as I know, you can only spec iframe height by percent or pixels: 100% gives you 100% of the parent container (window, table cell, etc); setting a height of 2000px means that many pages would have a heck of a lot of white space before the footer.

I've checked all the usual tutorials and sources, found all the basic stuff. Any neat tricks or tips out there?

Thanks in advance,

Jim

MonkeeSage

5:45 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try the CSS attribute overflow: set to auto or hidden, mabye that will work for what you want?

Jordan

jimbeetle

7:19 pm on Sep 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Tried that, don't think iframe takes overflow. At any rate, behaviour would be the same as 'scrolling.'

Thanks anyway, MonkeeSage. Back to the drawing board. Think this might be something best left for late at night.