positioning content inside iframe

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have an iframe which loads an aspx page. This aspx page has a table.
I would like the top left of the table to align with the top left of
iframe. I have tried putting a div and using the left & top style
properties to do this but my table in the aspx page jsut will not move
at all. Does anyone know how I can do this?

here's my iframe:
<IFRAME align="center" width="500px" height="200px" id="VideoIFrame"
src="test.aspx" scrolling="no" frameborder="1">

here's my aspx page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://

<html xmlns="http://www.w3.org/1999/xhtml " >
<head runat="server">
    <form id="form1" runat="server">
    <div  style=" left:50px">
    <table runat="server" width="500" border="5">


Re: positioning content inside iframe

Put this code in between your head tag or in a css file in the aspx

By default the body can have some margin or padding.


body {
    margin: 0px;
    padding: 0px;


Quoted text here. Click to load it

Site Timeline