Skip to content

Instantly share code, notes, and snippets.

@cesarkohl
Last active September 11, 2015 12:51
Show Gist options
  • Save cesarkohl/1c93b4289a5ab6bbf329 to your computer and use it in GitHub Desktop.
Save cesarkohl/1c93b4289a5ab6bbf329 to your computer and use it in GitHub Desktop.
HTML center items
.center-items { overflow: auto; list-style-type: none; text-align: center; }
.center-items .item { display: inline-block; vertical-align: top; }
<div class="center-items">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment