Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > positioning contents of an iframe

Reply
Thread Tools

positioning contents of an iframe

 
 
phl
Guest
Posts: n/a
 
      09-17-2007
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>

 
Reply With Quote
 
 
 
 
phl
Guest
Posts: n/a
 
      09-18-2007
I figured out that this is an absolute positioning problem. after I
specified positioning eventhing worked

 
Reply With Quote
 
 
 
Reply

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
Adding contents on yaml file without overwriting actual contents Kamarulnizam Rahim Ruby 4 01-28-2011 09:10 AM
positioning content inside iframe phl HTML 1 09-20-2007 03:46 PM
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
Can I restrict both attribute contents and element contents in schema Don Adams XML 1 03-05-2004 12:48 PM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57