RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3981 | Replies: 1
Reply
Join Date: Feb 2005
Posts: 4
Reputation: NimbusSoftware is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
NimbusSoftware NimbusSoftware is offline Offline
Newbie Poster

Help Resizing an iframe that lives in a table

  #1  
Jul 8th, 2005
I would like to either 1) set the iframe's height equal to the window height minus the iframe's top position (filling the window without invoking the verical scroll bar) or 2) resize the iframe to the height of the its src.

Yes, I've tested Dynamicly resizing an iFrame to the size of it's contents. It works in Firefox but is ignored in IE.

I have the iframe in the following table...
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
  <head>
    <title></title>
<style><!--
iframe {width:100%;}
table {padding:2;table-layout:auto;width:100%;}
td {vertical-align:top;}
--></style>
  </head>
  <body>
    <table border='1' summary=''>
      <tr>
        <td colspan='2'>
          Banner
        </td>
      </tr>
      <tr>
        <td rowspan='2'>
          Left
        </td>
        <td>
          <table border='1' summary=''>
            <tr>
              <td>
                Right
              </td>
            </tr>
            <tr>
              <td>
                <iframe id='IFcontent' name='IFcontent'></iframe>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Posts: 6
Reputation: goro is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
goro goro is offline Offline
Newbie Poster

Re: Resizing an iframe that lives in a table

  #2  
Jul 26th, 2005
use the window.screenY attribute to know how much space you have. Next it's only math.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:18 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC