Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default Expandable iFrame Problemo...

    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.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  2. #2
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    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


  3. #3
    Join Date
    Aug 2006
    Location
    London
    Posts
    1,907
    Tokens
    0

    Latest Awards:

    Default

    so you want the div with the iframe in to expand?

    This is my way:

    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>
    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.

  4. #4
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    @above. That won't work..

    drink up this bottle of yeah
    and P A I N T your body on me


  5. #5
    Join Date
    Aug 2006
    Location
    London
    Posts
    1,907
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by SyrupyMonkey View Post
    @above. That won't work..
    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.

  6. #6
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Myke, with JS, iFrames do expand.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  7. #7
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    iFrames suck bad in most browsers, firefox, ie6-7 alot of security holes.

  8. #8
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Quote Originally Posted by Sygon.. View Post
    iFrames suck bad in most browsers, firefox, ie6-7 alot of security holes.
    I wanted to use PHP Include, but it broke my layout :|
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  9. #9
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Quote Originally Posted by Aflux View Post
    Myke, with JS, iFrames do expand.
    I said that ^_^

    drink up this bottle of yeah
    and P A I N T your body on me


  10. #10
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Looking for a good desiner to design a social networking template.

    PM me.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •