dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Table with iframe

  1. #1
    Join Date
    Jun 2004
    Posts
    3

    Question Table with iframe

    Greetings Everyone,
    I'm attempting to create a table with 4 rows. I have made the 3rd row an iframe.

    If I specify the height and width it works just fine.

    What I want to do is have the 3rd row auto adjust the height based on the html it loads.

    In other words I don't want the frame to scroll but browser to scroll.

    I have tried to change the specified Height and width to a percentage but it shrinks the row to the point where it can't be seen.

    Below is the code I'm using.

    Thanks in advance for your help.


    ------Cut Here-------

    <td height="100%" colspan="7"><iframe align="center" name="inline" width="100%" height="100%" src="main.html" frameborder="0"></iframe></td>

    -----Cut Here-----

  2. #2
    run while you still can!

    the 100% thing for frames seems to be buggy so if you must use frames, use a fixed height. If you need to kill a scroll bar add
    <style>
    body{overflow:hidden;}
    </style>
    to the frame code.

  3. #3
    Join Date
    Jun 2004
    Posts
    3
    Thanks for info. Is there a better/easier way for me to accomplish what I want to do?

  4. #4
    if you just want something with a scroll bar then use:
    <div style="overflow:auto;">
    blah
    </div>

    you can resize that more easily to with width and height

  5. #5
    Join Date
    Jun 2004
    Posts
    3
    Thanks for the help. I'll give that a try!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles