Hello,
How would I make it so the DIV the iFrame was in would expand downwards with the iFrame?
;; Tom
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks.

Hello,
How would I make it so the DIV the iFrame was in would expand downwards with the iFrame?
;; Tom
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks.
Last edited by Mr.OSH; 08-06-2007 at 10:07 PM.
Iframes do not expand!
In this case you'd either have to use a JS hack which risks working in only some browsers or use PHP Includes (more user friendly)
drink up this bottle of yeah
and P A I N T your body on me
so you want the div with the iframe in to expand?
This is my way:
I set a width so that the iframe wouldnt flow out and set a height so there is a default height when the content box is empty.HTML Code:<html><head> <style type="text/css"> #DIVIDHERE {width:100px; height: 100px; margin-left: 000px; background-image: url(urlhere);} </head> <body><div id="DIVIDHERE">expanding iframe code here.</div> </body> </html>
@above. That won't work..
drink up this bottle of yeah
and P A I N T your body on me
I use this all the time, it does. this code only expands downwards, if you wanted it to expand across you would remove the width code, but he may want a basic width for the content div so I added a width just in case and so that there is a basic height and width when the content box is empty.
Last edited by :Liam; 08-06-2007 at 08:09 PM.
Looking for a good desiner to design a social networking template.
PM me.
Want to hide these adverts? Register an account for free!