Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > expand <td> to height of its iframe contents

Thread Tools

expand <td> to height of its iframe contents

Steve Richter
Posts: n/a
I have a simple table with two columns. The first column contains 5
lines of text. The second column contains an iFrame. The iFrame in
turn contains a web page.

The problem is it does not display at all like I would like it to. I
want the column height to expand to the contents of either column.
Instead, since I guess the browser does not know the height of the
IFrame column, it is the height of column 1 that determines the height.

here is the web page in action:

Here is the source. How can I get the IFrame cell to display with its
full height, without the need for the scroll bar?

<form id="Form1" method="post" runat="server">
<table width="100%" border="1">
<tr><td width="20%">
<br>line 1
<br>line 2
<br>line 3
<br>line 4
<br>line 5
<td width="80%">
<iframe id="iframe1" name="ContentFrame"
width="100%" height="100%" ></iframe>



Reply With Quote
Patrick Olurotimi Ige
Posts: n/a
Steve try going through iframe attributes at:-
By adding "scrolling=no" you will have to scrolling bar.
Hope that helps

*** Sent via Developersdex ***
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't adjust the iFrame height to fit the contents. Cal Who ASP .Net 1 06-02-2010 02:21 PM
adjusting the height of an iframe to fit the contents. Cal Who ASP .Net 2 06-01-2010 04:11 PM
resizing iframe height according to its content in firefox visu Javascript 3 03-01-2007 02:28 AM
Possible to resize an Iframe to its content's height? Javascript 1 03-24-2006 08:06 PM
Div inside an iframe - how to set height relative to the iframe's visible size? Joe Attardi Javascript 0 01-17-2006 08:01 PM