dropup menus in CSS? -
i looking way build dropup menu. basically, have website has different buttons @ bottom , of them should have dropup menus few buttons apper above on mouseover.
oh, , i'd have solution works without big libraries , maybe without javascript (but that's because it's cleaner, solution javascript work).
edit: here's code:
html:
<div class="toolbarelement" id="toolbarviewusers"> <img src="images/usericon.png" /> list users </div> <div class="toolbarelement" id="toolbarsettings"> <img src="images/settings.png" /> settings </div> <div class="toolbarelement" id="toolbarlogout"> <img src="images/logout.png" /> logout </div>
css:
.toolbarelement img { display: block; } .toolbarelement { float: left; text-align: center; margin-left: 3px; margin-right: 3px; }
this how looks:
edit 2: tried this, still don't know how place submenu above toolbarelement:
css:
.toolbarelement { float: left; text-align: center; margin-left: 3px; margin-right: 3px; position: relative; } .submenu { position: absolute; bottom: 0px; left: 0px; }
html:
<div class="toolbarelement" id="toolbarsettings"> <img src="images/settings.png" /> settings <div class="submenu"> hallo </div> </div>
here think example:
jquery multi-tiered drop-up menu
watch demo here.
btw warning demo has de drop way down in left corner, call me idiot refreshed 5 times before saw :)
good luck
Comments
Post a Comment