Skip to content

Instantly share code, notes, and snippets.

@jsakhil
Created February 8, 2018 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsakhil/c640b1937385ced95d98310d0646c7f2 to your computer and use it in GitHub Desktop.
Save jsakhil/c640b1937385ced95d98310d0646c7f2 to your computer and use it in GitHub Desktop.
Equally distributed full width list item.
ul.full_width {
width: 100%;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
}
ul.full_width {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
<ul class="full_width">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
<li>List 4</li>
<li>List 5</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment