In the Personal Web Site Strater Kit, if I alter the MaximumDynamicDisplayLevels for the main menu ("menua") on the Default.master from 0 to 3 (actually the default value for <asp:menu>), the dynamic entries for the menu show up as a white
square when the page is shown, rather than containing the actual text for the menu item.
This appears to be a stylesheet thing, because if I remove the <pages
styleSheetTheme="White"/>
part of the web.config, the problem goes away. How should the stylesheets be altered so that you can read the menu items?
Thanks,
Thank you for replying!
However, it would be great if you could be a bit more specific. How exactly did you alter the div?
What helps for me is removing the "position" attribute in the CSS classes
header, menua and nav
Unfortunately, and obviously, this removes the positioning of those elements, which doesn't look good.
I made a mini test web site with a menu. If I set position:absolute on the menu, the submenu items go blank, so the problem seems general.
Is this a bug? Is there a workaround?
Thanks,
Sorry for being so vague, but I never did get it to work with the personal site themes. It seems to be a limitation in the .net 2.0 menu and how it interacts with div positioning. You could use a different menu control and most likely have no trouble. If
I come up with a solution I will let you know for sure though. Good luck and sorry I can't be of more help
Set this property in the menu tag DynamicMenuStyle-CssClass="style" or in different DynamicMenuStyle tag as you prefer. here style is a css class having z-index some higher value (e.g. 100) it should work fine then.
None
0 Points
5 Posts
Blank menu entries when activating dynamic display
Jun 18, 2005 02:38 PM|Mellbourn|LINK
This appears to be a stylesheet thing, because if I remove the <pages styleSheetTheme="White"/> part of the web.config, the problem goes away. How should the stylesheets be altered so that you can read the menu items?
Thanks,
Member
402 Points
245 Posts
Re: Blank menu entries when activating dynamic display
Jun 20, 2005 12:16 PM|Rafa|LINK
None
0 Points
5 Posts
Re: Blank menu entries when activating dynamic display
Jun 22, 2005 03:46 PM|Mellbourn|LINK
Thank you for replying!
However, it would be great if you could be a bit more specific. How exactly did you alter the div?
What helps for me is removing the "position" attribute in the CSS classes
header, menua and nav
Unfortunately, and obviously, this removes the positioning of those elements, which doesn't look good.
I made a mini test web site with a menu. If I set position:absolute on the menu, the submenu items go blank, so the problem seems general.
Is this a bug? Is there a workaround?
Thanks,
Member
402 Points
245 Posts
Re: Blank menu entries when activating dynamic display
Jun 27, 2005 02:04 PM|Rafa|LINK
Sorry for being so vague, but I never did get it to work with the personal site themes. It seems to be a limitation in the .net 2.0 menu and how it interacts with div positioning. You could use a different menu control and most likely have no trouble. If I come up with a solution I will let you know for sure though. Good luck and sorry I can't be of more help
None
0 Points
4 Posts
Re: Blank menu entries when activating dynamic display
Apr 07, 2009 09:59 AM|altini|LINK
None
0 Points
1 Post
Re: Blank menu entries when activating dynamic display
Jan 15, 2010 08:33 AM|PACS|LINK
z-index Is Correct!
Post this within your aspx page...
<asp:Menu ID="myMenu" runat="server" CssClass="dynamicmenuItem"
...
</asp:Menu>
Post this within your style sheet
.dynamicmenuItem
{
z-index: 100;
text-align: left;
color: #003399;
font-size: 11pt;
margin: 5px;
}
Hope this helps!