Skip to content Skip to sidebar Skip to footer

Create A Custom Drop Down Select Like The One Used On Twitter When User Logs Out

I'm trying to create custom drop-down select like the one used on twitter when user logs out and till now I did not succeed : This is what I achieved but is not working on IE9 :| h

Solution 1:

This works for me, doesnt require a click to get the drop down. Just add li elements to put the custom images on each menu item. Straight CSS and works on all browsers I have tested, if you find a browser that doesnt work let me know please.

#addMenu, #addMenuul {
list-style: none;
}

#addMenu {
float: left;
}

#addMenu > li {
float: left;
}

#addMenulia {
display: block;
padding: 08px;
text-decoration: none;
}

#addMenuul {
position: absolute;
display: none;
z-index: 999;
}

#addMenuullia {
width: 70px;
color: #000;
font-weight: bold;
}

#addMenuli:hoverul.noJS {
display: block;
background: #ccc;
color: #000; 
}

#addMenuulli:hovera {
background: #ddd;
}

HTML

<ulid='addMenu'><li><ahref='#'>MENU</a><ulclass='noJS'><li><ahref='URL'>Option1</a></li><li><ahref='URL'>Option2</a></li><li><ahref='URL'>Option3</a></li><li><ahref='URL'>Option4</a></li></ul></li></ul>

Post a Comment for "Create A Custom Drop Down Select Like The One Used On Twitter When User Logs Out"