hi
asp.net 2.0
I wan thte menu to be horizontally centered on the webpage, but I want the
submenuitems to left aligned.
So I created a table cell with HorizontalAlign set to Center. With this
option set the menu was horizontaly centered as I wanted, except that also
submenuitems was centered too (not what I wanted). So then I tryed to add a
extra div around the menu (<div style="text-align:left; margin-left:auto;
margin-right:auto;">). But that didn't help either...
any suggestions?
Here is my markup:
<asp:TableCel l BackColor="Blue Violet" ColumnSpan="2"
HorizontalAlign ="Center">
<asp:LoginVie w ID="LoginView2 " runat="server">
<AnonymousTempl ate></AnonymousTempla te>
<RoleGroups>
<asp:RoleGrou p Roles="Administ rator">
<ContentTemplat e>
<div style="text-align:left;
margin-left:auto; margin-right:auto;">
<asp:Menu ID="Menu1" runat="server"
SkinID="menu"
CssClass="menu"
DataSourceID="s mdsAdministrato r"
StaticDisplayLe vels="2"
Orientation="Ho rizontal">
</asp:Menu></div>
skin:<asp:menu runat="server"
SkinId="menu"
BackColor="#f0f 0f0"
ForeColor="#6B0 808"
StaticMenuItemS tyle-HorizontalPaddi ng="5px"
DynamicHoverSty le-BackColor="#6B0 808"
DynamicHoverSty le-ForeColor="#FFF FFF"
StaticSubMenuIn dent="10px"
DynamicMenuItem Style-HorizontalPaddi ng="5px"></asp:menu>
asp.net 2.0
I wan thte menu to be horizontally centered on the webpage, but I want the
submenuitems to left aligned.
So I created a table cell with HorizontalAlign set to Center. With this
option set the menu was horizontaly centered as I wanted, except that also
submenuitems was centered too (not what I wanted). So then I tryed to add a
extra div around the menu (<div style="text-align:left; margin-left:auto;
margin-right:auto;">). But that didn't help either...
any suggestions?
Here is my markup:
<asp:TableCel l BackColor="Blue Violet" ColumnSpan="2"
HorizontalAlign ="Center">
<asp:LoginVie w ID="LoginView2 " runat="server">
<AnonymousTempl ate></AnonymousTempla te>
<RoleGroups>
<asp:RoleGrou p Roles="Administ rator">
<ContentTemplat e>
<div style="text-align:left;
margin-left:auto; margin-right:auto;">
<asp:Menu ID="Menu1" runat="server"
SkinID="menu"
CssClass="menu"
DataSourceID="s mdsAdministrato r"
StaticDisplayLe vels="2"
Orientation="Ho rizontal">
</asp:Menu></div>
skin:<asp:menu runat="server"
SkinId="menu"
BackColor="#f0f 0f0"
ForeColor="#6B0 808"
StaticMenuItemS tyle-HorizontalPaddi ng="5px"
DynamicHoverSty le-BackColor="#6B0 808"
DynamicHoverSty le-ForeColor="#FFF FFF"
StaticSubMenuIn dent="10px"
DynamicMenuItem Style-HorizontalPaddi ng="5px"></asp:menu>
Comment