Skip to content

Instantly share code, notes, and snippets.

@frankschrijvers
Last active August 29, 2015 14:18
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 frankschrijvers/6ad32036aa74fd89c29b to your computer and use it in GitHub Desktop.
Save frankschrijvers/6ad32036aa74fd89c29b to your computer and use it in GitHub Desktop.
Masonry CSS
/* Masonry & Infinite scroll
--------------------------------------------- */
#container {
margin-bottom: -1.875em;
margin-left: -1.562%;
overflow: hidden;
padding-bottom: 160px;
position: relative;
width: 103.125%;
}
#container .pagination {
display: none;
}
.brick {
background: #f8f9fa;
float: left;
font-size: 14px;
margin: 0 1.515% 1.875em !important;
padding: 3%;
width: 30.303%;
}
#infscr-loading {
bottom: 0;
clear: both;
left:40%;
margin: 4em auto;
position: absolute;
right: 40%;
text-align: center;
width: 20%;
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment