positioning contents of an iframe

Discussion in 'HTML' started by phl, Sep 18, 2007.

  1. phl

    phl Guest

    Hello

    I have an iframe which contains an aspx page. The aspx page displays
    a table. The problem is that the table in the aspx page is not
    aligning with the top left corner of the iframe. I would like position
    the table but I haven't been able to do it successfully,using divs.
    Does anyone know how this can be done?

    here's my iframe:

    <html>
    <head>
    </head>
    <body>
    <IFRAME align="center" width="500px" height="200px" src="test.aspx"
    scrolling="no" frameborder="1">
    </IFRAME>
    </body>
    </html>

    here's my aspx page :

    <%@ Page Language="C#" AutoEventWireup="true" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
    www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head >

    </head>

    <body>



    <form id="form1" runat="server">

    <div style=" left:-5px">

    <table width="500" border="5">

    <tr>

    <td>table</td>

    </tr>

    </table>

    </div>

    </form>



    </body>

    </html>
     
    phl, Sep 18, 2007
    #1
    1. Advertisements

  2. phl

    phl Guest

    I figured out that this is an absolute positioning problem. after I
    specified positioning eventhing worked
     
    phl, Sep 18, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. user
    Replies:
    1
    Views:
    950
    Bruce Barker
    Apr 4, 2005
  2. Steve Richter

    expand <td> to height of its iframe contents

    Steve Richter, May 7, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,485
    Patrick Olurotimi Ige
    May 8, 2005
  3. markww

    get contents of iframe

    markww, Apr 21, 2006, in forum: HTML
    Replies:
    5
    Views:
    19,275
    Jonathan N. Little
    Apr 21, 2006
  4. Don Adams
    Replies:
    1
    Views:
    777
    Martin Honnen
    Mar 5, 2004
  5. phl
    Replies:
    1
    Views:
    2,890
    Ivanovich
    Sep 20, 2007
  6. Kamarulnizam Rahim
    Replies:
    4
    Views:
    436
    Robert Klemme
    Jan 28, 2011
  7. Daedalous
    Replies:
    3
    Views:
    1,139
    Daedalous
    Jan 16, 2004
  8. Replies:
    0
    Views:
    367
Loading...