Skip to content

Instantly share code, notes, and snippets.

@Bizunow
Created September 26, 2017 09:54
Show Gist options
  • Save Bizunow/9b7c108f7894d5e8cde7bb291ec1f253 to your computer and use it in GitHub Desktop.
Save Bizunow/9b7c108f7894d5e8cde7bb291ec1f253 to your computer and use it in GitHub Desktop.
[CSS Masonry] #css #html
.masonry {
column-count: 3;
column-gap: 1em;
}
.masonry .item {
background-color: #eee;
display: inline-block;
margin: 0 0 1em;
width: 100%;
}
<div class="masonry">
<img class="item">
<img class="item">
<img class="item">
...
</div>
@poumkins
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment