positioning contents of an iframe

P

phl

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>
 
P

phl

I figured out that this is an absolute positioning problem. after I
specified positioning eventhing worked
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top