jazz__man
asked on
iframe content positioning problem - how can i position content top and left?
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?
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?
can you please copy the code you ahve right now...
ASKER
<iframe runat="server" id="ifImageControl" src="../Common/PhotoUpload er.aspx" frameborder="1"
scrolling="no" marginwidth="0" marginheight="0" hspace="0" vspace="0" height="100" width="460px" name="myInlineFrame"></ifr ame>
Here is the actual iframe content
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhotoUploader. aspx.cs"
Inherits="EbayUI.Common.Ph otoUploade r" %>
<!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>
scrolling="no" marginwidth="0" marginheight="0" hspace="0" vspace="0" height="100" width="460px" name="myInlineFrame"></ifr
Here is the actual iframe content
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhotoUploader.
Inherits="EbayUI.Common.Ph
<!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>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.