IE7 & ASP.NET menu control with position:fixed not working properl

Discussion in 'Internet Explorer' started by dpomt, Mar 17, 2006.

  1. dpomt

    dpomt Guest

    Hello,

    when using css position:fixed for a div containing an ASP.NET 2.0 menu
    control, the submenus are positioned wrongly: the specified top margin not
    only is added to the toplevel menu entries but also to the submenu entries.

    Sample:

    <div style="position:fixed;top:100px;left:20;">
    <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
    <Items>
    <asp:MenuItem Text="Test1" Value="Test1">
    <asp:MenuItem Text="New Item" Value="New Item">
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    </asp:MenuItem>
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    </asp:MenuItem>
    <asp:MenuItem Text="Test2" Value="Test2">
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    </asp:MenuItem>
    <asp:MenuItem Text="New Item" Value="New Item">
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    <asp:MenuItem Text="New Item" Value="New
    Item"></asp:MenuItem>
    </asp:MenuItem>
    </Items>
    </asp:Menu>

    </div>

    ----------------
    This post is a suggestion for Microsoft, and Microsoft responds to the
    suggestions with the most votes. To vote for this suggestion, click the "I
    Agree" button in the message pane. If you do not see the button, follow this
    link to open the suggestion in the Microsoft Web-based Newsreader and then
    click "I Agree" in the message pane.

    http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general
     
    dpomt, Mar 17, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.