<asp:SiteMapDataSource ID="MyMenu" runat="server"
ShowStartingNode="True" StartFromCurrentNode="False" StartingNodeUrl="~/MyPage.aspx" />
<asp:Menu ID="Menu1" runat="server"
DataSourceID="MyMenuDS"
DynamicMenuStyle-CssClass="adjustedZIndex"
StaticEnableDefaultPopOutImage="False"
DynamicVerticalOffset="36"
DynamicHorizontalOffset="-104"
SkipLinkText=""
StaticSelectedStyle-ForeColor="Red">
<StaticMenuItemStyle CssClass="MenuLevel0" />
<StaticHoverStyle CssClass="MenuLevel0Hover" />
<StaticSelectedStyle CssClass="MenuLevel0Visited" />
<DynamicMenuStyle CssClass="adjustedZIndex" />
<DynamicMenuItemStyle CssClass="MenuLevel1" />
<DynamicHoverStyle CssClass="MenuLevel1Hover" />
</asp:Menu>
And here are the styles
.MenuLevel0
{
color:Black; font-size:small;
}
.MenuLevel0Visited
{
color: White;
}
.MenuLevel1
{
color: Black; font-size:small;
}
.MenuLevel0Hover
{
font-weight:bold;
}
.MenuLevel1Hover
{
font-weight:bold;
}
|