Click here to Skip to main content
15,946,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is not working in IE 8..

XML
<asp:Menu ID="Menu2" runat="server" DataSourceID="xmlDataSource" Orientation="Horizontal"
                        ScrollDownImageUrl="~/images/arrv_white.gif" DynamicPopOutImageUrl="~/images/drop-arrow.gif"
                        StaticPopOutImageUrl="~/images/drop-arrow.gif" ForeColor="#8B8B8B" MaximumDynamicDisplayLevels="1"
                        Font-Size="10px" OnMenuItemClick="Menu1_MenuItemClick">
                        <DynamicItemTemplate>
                            <%# Eval("text") %>
                        </DynamicItemTemplate>
                        <DataBindings>
                            <asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="Url" TextField="MenuName" />
                        </DataBindings>
                        <LevelMenuItemStyles>
                            <asp:MenuItemStyle CssClass="level1" />
                            <asp:MenuItemStyle CssClass="level2" />
                        </LevelMenuItemStyles>
                    </asp:Menu>


This is my CSS..

CSS
.level1
{
	font-variant:normal;
	color:#5C4F21;
	font-family:Tahoma;
    font-size:12px;
    font-weight:bold;
    background-color:#FDF3D6;
    background-image: url(images/bg_Menu.png);
    padding: 2px 2px 2px 2px;
    height:21px;
    width:150px;
    text-align:center;
    border: Solid 1px #E3D9B3;
    
 }
 .level1:hover
 {
 	color: #5C4F21;
 	background-color: #FDF3D6;
    background-image: url(images/bg_MenuHover.png);
    height:21px;
    width:150px;
 }
.level2
{
    color:#5C4F21;
	font-family:Tahoma;
    font-size: 12px;
    background-color:#FFFDF4;
    text-align:left;
	padding:4px 8px 4px 8px;
	height:22px;
	border: Solid 1px #E3D9B3;
}
.level2:hover  
{ 
	background-color:#FDF3D6;
	color: #5C4F21;
}
Posted
Updated 7-Mar-10 23:57pm
v3

1 solution

Try this CSS class for DynamicMenuStyle:

.adjustedZIndex {
    z-index: 1;


<DynamicMenuStyle CssClass="adjustedZIndex" />
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900