c# - Make a Dropdownmenu with CSS -


i make dropdownmenu, not easy, because working panels. menu. i've got nav= menu , got panel menu , 1 submenu. submenupanel not displayed default. wan't block comes down, when hover on pnlmenu.

 <div id="wrapper_menu">         <div id="menuicon">             <div class="menubar" id="menubar-top"></div>             <div class="menubar" id="menubar-mid"></div>             <div class="menubar" id="menubar-bottom"></div>         </div>         <nav id="menu">             <asp:panel id="pnlmenu" runat="server"></asp:panel>             <asp:panel id="pnlsubmenu" runat="server">                 <asp:contentplaceholder id="contentplaceholder1" runat="server">                 </asp:contentplaceholder>             </asp:panel>         </nav>     </div> 

this css code have. need selector changes other div. don't know if posssible works that, isn't should display dropdownmenu, wanted if can select that.

    #pnlmenu .menu_link:hover #pnlsubmenu .submenu_link {     height:50px;    display:block; } 

because working masterpage, there's code gets generated. html code:

enter image description here

this not work

    #pnlmenu .menu_link:hover #pnlsubmenu .submenu_link {     height:50px;    display:block; } 

because assumes #pnlsubmenu child of .menu_link not.

in fact #pnlsubmenu sibling of #pnlmenu may need rethink approach.

i suspect interactivity may need javascript given html's current structure there no css selector allow affect submenu div hovering link in the first menu div


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -