Results 1 to 5 of 5

Thread: Resizable IFrame

  1. #1
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Resizable IFrame

    Hi,

    I want to create a resizable IFrame, same as resizable Div in the following URL

    http://webfx.eae.net/dhtml/genresize/genresize.html

    Can it be possible?
    Last edited by jscheuer1; 05-16-2008 at 08:01 AM. Reason: fix link

  2. #2
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I believe if you put the iframe inside of the div, it would work maybe.
    Jeremy | jfein.net

  3. #3
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    I believe if you put the iframe inside of the div, it would work maybe.
    Hi Nile,
    Thanks for the response.

    No, Only the Div will be resizable but the IFrame's size will be remain same as it was.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Both this script and iframe are quirky beasts, but Nile is right if the iframe is set to 100% x 100%:

    Code:
    <div style="width:300px;height:300px;border:2px solid red;" class="resizeMe">
    <iframe src="some.htm" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>
    </div>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, I have the same problem,i set ifame tag height:100%; width:100%; but the height size it heighter than the content.

    and another problem is that<div> background-color is green, the iframe background-color is working in Firefox, but not IE, in IE, the <iframe> has no color to match the <div> background-color.

    Here is the code:

    <div style="width:560; bgcolor = green" >
    <iframe name="maintFrame" src="front_page.html" style="border:1; position:relative; top:0; left:0; right:0; height:100%; width:100%; overflow:auto"></iframe>
    </div>

    help!!

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
  •