Results 1 to 5 of 5

Thread: HTML page does not want to resize to Iframe's Size.

  1. #1
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HTML page does not want to resize to Iframe's Size.

    Hey everyone

    I'm new here. Boy have I spent hours reading through some of this forum's content. Great stuff and especially the support.

    I have one for you

    I have a page with an iframe code in it referencing an external page.

    The page does not want to resize to the actual size of the external page (in height I mean)

    Hope someone can help.

    This is my iframe code:
    <iframe name="FRAMENAME" src="http://domain.com/subfolder/index.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

    I really hope someone can help me here.

    Regards,
    Ryan

  2. #2
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    It won't resize to the height of the page, you have to define a height yourself...

    Hope this helps,
    X96
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  3. #3
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Are you sure?

    So there is no way I can add specific code that will allow the page to resize to the iframe's height?

    The problem I'm having is that the page where the iframe code is on, is part of a dynamic template. So manually resizing each page is going to take forever. And other pages will get affected by the same height.

    However, if I can somehow add a code that will resize the template page automatically when content goes beyond the original set size, then when somebody lands on the iframe page it will resize there as well. All will be good!

    So what are my options here seeing that I cannot do that?

  4. #4
    Join Date
    Feb 2009
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    There probably is a script out there somewhere that will resize the page... But It'll take some looking.

    Try looking on JavaScript Kit...

    // X96 \\
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  5. #5
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help.

    I'm willing to pay for some help. Time isn't really a comfort now lol.

Bookmarks

Posting Permissions

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