I'm trying to build a screen that show several cards with different heights, but once they have different heights, they send it to the down of the highest one like this: result
but i want to fit at the next one it should right below it, like this: desired result
My structure for this is easy:
<body>
<main>
<div class="section">
<div class="row container">
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
<div class="col s12 m6 l4">CARD</div>
</div>
</div>
</main>
</body>
I've tried using floats at the cols divs but nothing worked out... Does anybody knows how to make something like i want? Thanks.