0

Stack Example Image

I want to stack flexbox items and not have the same heights, Almost similiar to pinterest layout so the posts don't have any spacing between, If it's possible without Masonry it would be the best.

So far i have this

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    align-items: flex-start;
}

.flex-content {
    margin: 15px;
    width: 300px;
    background-color: white;
}

They do still stack as the image below, Is it possible in any smart way?

Thanks!

Kerpalito
  • 177
  • 1
  • 8

0 Answers0