Subject: Issue with asp:Menu in TBH
Posted By: Blbpaws Post Date: 8/31/2006 8:56:33 PM
I've been very impressed with Marco's work in this version of Problem Design Solution and in the first one for ASP 1.0. It's been a great help.

However, having been using the TBH site as a basis for one of my projects, I've run into an issue with the asp:menu. I've modified the homepage slightly, and when I add a child to one of the root items in the menu (Articles, in my case), the pop up menu doesn't render properly in IE6 (it's fine, of course, in Firefox), but rather appears to try to render underneath the div that contains the SiteMapPath. meaning that only about the top half of the first child is visible.

Can anyone recreate this error or point me to a solution? Many thanks, and I look forward to future editions of this book.

Reply By: Blbpaws Reply Date: 9/1/2006 3:44:02 PM
In case I was too vague in my post, or for those who believe a picture is worth a thousand words:

http://xs.to/xs.php?h=xs305&d=06355&f=brokenmenu.jpg

Thanks for any help you can provide.

Reply By: Blbpaws Reply Date: 9/1/2006 6:47:04 PM
Actually, I solved it. Perhaps this should be investigated further by someone more experienced than I, and then added to the official errata.

To fix the rendering issue, specify the Z-Index of the div that contains the menu header (and maybe also the menu header itself) to be greater than 1. For some reason, IE, but not Firefox, needs this to render properly.

Hope this helps someone.

Reply By: MythicalMe Reply Date: 9/2/2006 1:20:21 AM
At this point, I have no answer for you. I was researching the problem, because it isn't the first time this question has been asked. It is my belief, and again it is unconfirmed, that because DIVs are being used that the z-order is order of placement. The menu div is behind because it is placed before the panel divs.

Reply By: Blbpaws Reply Date: 9/2/2006 7:52:45 AM
Right, that appears so. By manually setting the z-index of the menu div to 3, you get around the problem.


Go to topic 49201

Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183
Return to index page 182
Return to index page 181
Return to index page 180
Return to index page 179
Return to index page 178
Return to index page 177