On Jun 21, 10:30 am, "Mark Rae" <m...@markNOSPAMrae.netwrote:
"Mel" <MLights...@gmail.comwrote in message
news:11*********************@u2g2000hsc.googlegrou ps.com...
I am desperate to figure it out today!
<asp:Panel ID="MyPanel" runat="server" HorizontalAlign="center">
</asp:Panel>
or
<div style="margin-left:auto;margin-right:auto;">
</div>
--http://www.markrae.net
Thank you for the quick response. I tried the
HorizontalAlign="center" and it didn't work when I looked at it with
Internet Explorer. Am I missing something else?
This is the code for my top panel (on the master page). Basically the
top panel is aligned at the top of the window and it just has our logo
in the center and labels on each side.
<asp:Panel ID="pnlTop" runat="server" HorizontalAlign="center"
BackColor="Black" Height="94px" Style="z-index: 100;
left: 0px; position: absolute; top: 0px;" Width="850px">
<asp:Label ID="lblWelcome" runat="server"
BackColor="Transparent" BorderStyle="None"
Font-Names="Verdana" Font-Size="Medium"
ForeColor="#E0E0E0" Height="14px"
Style="z-index: 100; left: 10px; position: absolute;
top: 11px" Text="Welcome:"></asp:Label>
<asp:Label ID="lblRepFirm" runat="server" Style="z-index:
106; left: 96px; position: absolute;
top: 39px; text-align: left;" Text="Label"
Width="219px" BackColor="Black" Font-Names="Verdana" Font-Size="Small"
ForeColor="White"></asp:Label>
<asp:Label ID="lblRepCity" runat="server"
BackColor="Black" Font-Names="Verdana"
Font-Size="Small" ForeColor="White" Style="z-index:
102; left: 96px; position: absolute;
top: 62px; text-align: left;" Text="Label"
Width="119px"></asp:Label>
<asp:Label ID="lblRepSt" runat="server" BackColor="Black"
Font-Names="Verdana"
Font-Size="Small" ForeColor="White" Style="z-index:
103; left: 224px; position: absolute;
top: 62px; text-align: left;" Text="Label"></
asp:Label>
<asp:Image ID="imgLogo" runat="server" Height="73px"
ImageUrl="~/Images/logo_unaclad.gif"
Style="z-index: 104; left: 318px; position: absolute;
top: 9px" Width="197px" />
<asp:Label ID="lblUName" runat="server" BackColor="Black"
Font-Names="Verdana"
Font-Size="Small" ForeColor="White" Height="22px"
Style="z-index: 105; left: 96px;
position: absolute; top: 11px; text-align: left;"
Width="167px"></asp:Label>
</asp:Panel>