Masonry layout
This CSS-only responsive masonry-based layout has cross browser support. With this layout you can enhance your galleries, blogs and product lists and more.
Masonry usage
Items must be wrapped inside a <div>
with class="masonry-container"
. You can choose class="masonry-item"
or class="card"
to define the masonry items.
<div class="masonry-container">
<div class="card"> ... </div>
<div class="card"> ... </div>
...
<div class="card"> ... </div>
</div>
<!-- without "card" styles -->
<div class="masonry-container">
<div class="masonry-item"> ... </div>
<div class="masonry-item"> ... </div>
...
<div class="masonry-item"> ... </div>
</div>