SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2001
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    iframes in tables - 100% height problem

    In internet explorer the iframe uses 100% of the TD it's in, yet in Netscape 6, it takes its height from the whole table, which browser implements it correctly and is there a way to get around it with CSS rather than tables. The code is something like this :

    <table width="400" height="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td height="40">!-- title + some nav buttons go here --</td>
    </tr>
    <tr>
    <td height="100%">
    <iframe src="whatever.aspx" height="100%" width="400" srcolling="auto" name="main" id="main"></iframe>
    </td>
    </tr>
    </table>

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could always try using inline style tag to see if that would control the height better...

    style="height:100%"

    Just place that in the iframe tag and see
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can 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
  •