Credit to this module goes out to George Denning for this CodePen: http://codepen.io/georgehdenning/pen/dYNWeB (modified for use with Kayzen).
<div class="tiles"> <div class="tile tile-box"> <div class="tile tile-rec"> <div class="tile-img"></div> </div> <div class="tile tile-rec"> <div class="tile tile-box"> <div class="tile tile-rec"> <div class="tile-img"></div> </div> <div class="tile tile-rec"> <div class="tile tile-box"> <div class="tile-img"></div> </div> <div class="tile tile-box"> <div class="tile-img"></div> </div> </div> </div> <div class="tile tile-box"> <div class="tile-img"></div> </div> </div> </div> <div class="tile tile-box"> <div class="tile-img"></div> </div> </div>
The Masonry Grid can be customized using the following options:
Property Name | Default Value | Description |
---|---|---|
spacing |
4px |
The spacing between each tile on all sides. |
background |
#eeeeee |
The background for individual tiles. |
@include masonry-grid(( 'spacing' : 8px, 'background' : pink ));