Skip to main content

Masonry Grid

You can create a masonry grid layout by creating a div element with .masonry class. And adding column(masonry-column-1/ ... /masonry-column-6) and spacing(masonry-spacing-0/ ... /masonry-spacing-50) classes to the element to customize it.

  • masonry-column-1 - to Create a 1 column layout (by default)
  • masonry-column-2 - to Create a 2 column layout
  • masonry-column-3 - to Create a 3 column layout
  • masonry-column-4 - to Create a 4 column layout
  • masonry-column-5 - to Create a 5 column layout
  • masonry-column-6 - to Create a 6 column layout
  • masonry-spacing-0 - 0px spacing between columns
  • masonry-spacing-6 - 6px spacing between columns
  • masonry-spacing-10 - 10px spacing between columns
  • masonry-spacing-20 - 20px spacing between columns
  • masonry-spacing-30 - 30px spacing between columns (by default)
  • masonry-spacing-40 - 40px spacing between columns
  • masonry-spacing-50 - 50px spacing between columns

Basic Masonry

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.


<div class="masonry masonry-column-3 masonry-spacing-30">
  <!-- Masonry Item 1 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
  <!-- Masonry Item 2 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
  <!-- Masonry Item 3 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
  <!-- Masonry Item 4 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
  <!-- Masonry Item 5 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
  <!-- Masonry Item 6 -->
  <div class="masonry-item">
    <div class="bg-white padding-40 box-shadow-with-hover">
      <p>Lorem ipsum dolor sit amet...</p>
    </div>
  </div>
</div>