iframe content positioning problem - how can i position content top and left?

jazz__man
jazz__man used Ask the Experts™
on
Hi

I am using an Iframe and cannot get the content of the iframe to position inside the box correctly.

I also dont want any ugly scroll bars if possible.

my iframe is set to height = 100 and width = 460 (px) but there is a space at the top holding the content down and out of view.

So basically is there a way of setting the content to align hard to the top and to the left?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
HainKurtSr. System Analyst

Commented:
can you please copy the code you ahve right now...

Author

Commented:
<iframe runat="server" id="ifImageControl" src="../Common/PhotoUploader.aspx" frameborder="1"
                    scrolling="no" marginwidth="0" marginheight="0" hspace="0" vspace="0" height="100" width="460px" name="myInlineFrame"></iframe>






Here is the actual iframe content


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhotoUploader.aspx.cs"
    Inherits="EbayUI.Common.PhotoUploader" %>

<!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 runat="server">
    <title>Untitled Page</title>
    <link href="../CSS/Ebay.css" rel="stylesheet" type="text/css" />


</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
       
       
        <asp:Table runat="server">
            <asp:TableRow>
                <asp:TableCell RowSpan="2">
                   
                <asp:Image ID="ImgUploaded" runat="server" BorderStyle="Solid" BorderWidth="2px" BackColor="Black"/>
               
                </asp:TableCell>
                <asp:TableCell >
               
                    <asp:Label ID="lblSelectImage" runat="server" Text="Select an Image to Upload"></asp:Label>
                   
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
            <asp:TableCell>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
           
            <asp:FileUpload ID="fuImage" runat="server" onchange="ViewImage()" />
            </ContentTemplate>
                    </asp:UpdatePanel>
               
            </asp:TableCell>        
            </asp:TableRow>
        </asp:Table>
        </div>
   
    </form>
</body>
</html>





I managed to fix it myself using this

<div id="Wrapper" style="position:relative; top:-27px; left:5px;">

but thanks anyway

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial