Link to home
Start Free TrialLog in
Avatar of Michael Sterling
Michael SterlingFlag for United States of America

asked on

Anchor a table

I have a table within a panel. the panel is set to resize with the size of the browser window. i want the table within the panel to stay in the upper left corner. how do i make this happen
Avatar of HainKurt
HainKurt
Flag of Canada image

any code to share?
Avatar of Michael Sterling

ASKER

sure...
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="KCMSDmp.master.cs" Inherits="KCMSDmp" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!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>Main Page</title>
    <style type="text/css">
    html
        {
            height:100%;
        }
    .panel
        {
            height: 100%;
            width: 100%;
        }
    </style>
    
    <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder>
</head>

<body class="panel">
    <form id="form1" runat="server" class="panel">
    <div class="panel">
    <asp:Panel ID="Panel1" runat="server" BackImageUrl="~/Images/bkgrndPtrn2.jpg" 
            cssclass="panel" >
        <asp:Table ID="Table1" runat="server" CellPadding="0" CellSpacing="0" 
            cssclass="panel" align="top">
            <asp:TableRow runat="server">
                <asp:TableCell runat="server">
                    <td>
                        <asp:Image ID="Image2" runat="server" Height="100px" 
                            ImageUrl="images/kcmsdEmblem.jpg" />              
                    </td>
                    <td>              
                        <asp:Image ID="Image1" runat="server" Height="100px" 
                            ImageUrl="images/kcmsdBanner.jpg"/>
                    </td>
                </asp:TableCell>
                <asp:TableCell runat="server">                
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </asp:Panel>

        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder>
    </div>
    <link rel="Stylesheet" href="Default.css" type="text/css" />
    </form>
</body>
</html>

Open in new window

also, can you please post html source of this piece...
that's all the html...(above)
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks