ASP:Menu control Dropdowns show above Main Menu

J

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
 
W

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 ([email protected], 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.
 
W

Walter Wang [MSFT]

Hi Jerry,

How's the status of this post?

Regards,
Walter Wang ([email protected], 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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top