Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2016 10:43
What would you like to do?
Horizontally distribute all items
#subMenu ul{
vertical-align: middle; /*Or anything else*/
width: 100%;
max-width: 960px; /*Allow items to be distributed only in this maximum space, remove if you need all 100% */
margin: 0 auto; /*Center*/
text-align: justify;
#subMenu ul:after{
content: "";
padding-right: 100%;
display: inline-block;
vertical-align: top;
#subMenu ul li{
display: inline-block;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment