Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I'm using VB.NET express 2005 to write a web site. On a master page I have two menus at the top, one below the other, both populated by code. The one on top has several drop-downs, and due to formatting the drop-downs rendered behind the menu below, rather impractical. I fixed this problem by encapsulating each menu in its own Panel and setting the proper z-orders. This worked until recently, and I can't figure out how to get it to work now. Instead the drop-downs render roughly 400 pixels to the right of where they are supposed to. Any help would be appreciated.

 

If you need any more code (sample rendered page, css, themes) just ask. Give me up to a couple days to respond. TIA.

 

Edited snippet from master page:

<form id="Form1" runat="server">
       <div class="header" style="z-index: 100;">
           <asp:Panel runat="server" Style="position: relative; left: 156px; top: 0px; z-index: 104;" ID="Panel1">
               <asp:Menu ID="MainMenu" SkinID="MainMenu" runat="server" Height="26px" Orientation="Horizontal"
                   Style="position: static" Width="592px">
               </asp:Menu>
           </asp:Panel>
               
           <asp:Panel runat="server" CssClass="nav" Style="right: 36px; top: 48px; width: 556px;
               text-align: left; z-index: 101; position: absolute;" ID="DIV1">
               <asp:Menu ID="MainMenu2" runat="Server" SkinID="MainMenu2" />
           </asp:Panel>
       </div>
       <table width="904" border="0" cellpadding="4" align="center">
           <tr>
               <td width="904" colspan="2" style="text-align: left">
                   <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                   </asp:ContentPlaceHolder>
               </td>
           </tr>
       </table>
   </form>

Edited by PlausiblyDamp

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...