Hello,
I am using a Menu Control & I have added Items in Menu Item Editor (both root & child). But in the browser the child items are not displaying. Running perfectly when my lecturer showed in his pc.

When I searched for this problem, I have seen some solutions explaining about SiteMap. I do not know about this sitemap & did not use it, just added items & I want them to be displayed in the browser with child items with StaticDisplayLevels=1. Tried with all the browsers but not working.

Thanks.

Could u pls put ur code here? I will help u.

<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Small" 
            ForeColor="#990000" StaticSubMenuIndent="10px" CssClass="adjustedZIndex">
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            [B]<DynamicMenuStyle BackColor="#FFFBD6" CssClass="adjustedZIndex"/>[/B]
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <Items>
                <asp:MenuItem Text="Home" Value="Home"></asp:MenuItem>
                <asp:MenuItem Text="Reports" Value="Reports">
                    <asp:MenuItem Text="Daily" Value="Daily"></asp:MenuItem>
                    <asp:MenuItem Text="Monthly" Value="Monthly"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Contact Us" Value="Contact Us"></asp:MenuItem>
                <asp:MenuItem Text="About Us" Value="About Us"></asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#FFCC66" />
        </asp:Menu>

I added that line & created a CSS file with code:

.adjustedZIndex
{
    z-index: 1;
}

Thats all... Its worked fine.
Can u tell me why this code made that much difference.. Im using IE8.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.