Home All Groups Group Topic Archive Search About

ASP:Menu control Dropdowns show above Main Menu

Author
21 Feb 2007 4:37 PM
Jerry C
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

Author
22 Feb 2007 6:02 AM
Walter Wang [MSFT]
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 (waw***@online.microsoft.com, 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.
Author
26 Feb 2007 7:56 AM
Walter Wang [MSFT]
Hi Jerry,

How's the status of this post?

Regards,
Walter Wang (waw***@online.microsoft.com, 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.