http://codepen.io/doptrois/pen/JoyzKw
- Pixels
- Rems
- Percentages*
*Percent gaps are not supported by css columns e.g.
columns-gap: 3%
The mixin will simulate that behaviour for you.
Some mixins used from bourbon.io
your-masonry-container {
@include masonry(3, 2%, "> *");
}
Each variable is optional. Defaults are shown above.
If you use percentages for columns gaps, it's recommended to not style the direct child elements of 'your-masonry-container' and wrap the content inside with an additional element and style these elements like in the codepen example.