Last active
December 27, 2015 14:39
-
-
Save shazdeh/7341755 to your computer and use it in GitHub Desktop.
Simple dropdowns using the Custom Menu widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.menu > li { | |
display: inline-block; | |
position: relative; | |
} | |
.menu > li > a { | |
padding: 5px 10px; | |
display: inline-block; | |
} | |
.menu li ul { | |
display: none; | |
position: absolute; | |
top: 100%; | |
left: 0; | |
margin-top: 0; | |
background: #000; | |
min-width: 180px; | |
} | |
.menu li ul li a { | |
display: block; | |
} | |
.menu li:hover ul { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment