ASP:Menu control Dropdowns show above Main Menu

Discussion in 'ASP .Net Web Controls' started by Jerry C, Feb 21, 2007.

  1. Jerry C

    Jerry C Guest

    I have a menu control in different places on my page and some times the
    dropdown menu items show an inch or two above the main menu selection.
    the code is:

    <table><tr><td>
    <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
    <Items>
    <asp:MenuItem NavigateUrl="~/MenuBehaviors_cs.aspx"
    Text="Book 1"
    Value="Book 1">
    <asp:MenuItem NavigateUrl="~/MenuBehaviors_cs.aspx"
    Text="Chapter 0"
    Value="Chapter 0"/>
    <asp:MenuItem NavigateUrl="~/MenuBehaviors_cs.aspx"
    Text="Chapter 1"
    Value="Chapter 1">
    </asp:MenuItem>
    </asp:MenuItem>

    </Items>
    <StaticMenuItemStyle BorderColor="Black" BorderStyle="Solid"
    BorderWidth="2px"
    HorizontalPadding="10px" />
    </asp:Menu>
    </td></tr></table>
    This will work ok on some parts of the page and not work on other parts it
    kind of looks like this

    Chapter 0
    Chapter 1





    Book 1

    when it should look like:

    Book 1
    Chapter 0
    Chapter 1

    Thank you

    --
    Jerry
    Jerry C, Feb 21, 2007
    #1
    1. Advertising

  2. Hi Jerry,

    This might be related to other stylesheet rules you specifed in your page
    (either inline or linked external stylesheet files). Try to remove them and
    test it again.

    If in doubt, please view the WebForm in IE and save the page in IE as a
    static html file. In the "Save as type" field, choose "Webpage, complete
    (*.htm; *.html)", this will save the html page along with its related files
    such as *.js or *.css. Then compress the .htm file and the related files
    (normally in a folder such as "Untitled Page_files", this is called
    Connected Files
    (http://msdn2.microsoft.com/en-us/library/aa969390.aspx#connected) ) and
    post here. Thanks.

    Regards,
    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Walter Wang [MSFT], Feb 22, 2007
    #2
    1. Advertising

  3. Hi Jerry,

    How's the status of this post?

    Regards,
    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Walter Wang [MSFT], Feb 26, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Damon
    Replies:
    4
    Views:
    500
    Corey O'Mara
    Feb 7, 2004
  2. John M
    Replies:
    1
    Views:
    1,111
    Kumar Reddi
    May 29, 2005
  3. Ashish

    Menu not displayed above dropdown list

    Ashish, Jan 3, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    105
    Ken Cox [Microsoft MVP]
    Jan 6, 2005
  4. MOHAMMED AZEEMUDDIN

    MULTIPLE DROPDOWNS, ASP, VBSCRIPT

    MOHAMMED AZEEMUDDIN, Oct 25, 2003, in forum: ASP General
    Replies:
    1
    Views:
    168
    Bob Barrows
    Oct 25, 2003
  5. Nimi

    Too many dropdowns on an ASP page

    Nimi, Oct 14, 2004, in forum: ASP General
    Replies:
    5
    Views:
    109
Loading...

Share This Page