I've been fiddling with this for more than an hour now, I've also did some search and review some that was posted here but non of them was able to resolve my issue.
I have 5 divs and the third and forth div doesn't stack up as I was expecting, instead the last div stack on the third div.
HTML
<div class="isotope js-isotope">
<div class="item width2 height2"></div>
<div class="item width2 height2"></div>
<div class="item width2 width2"></div>
<div class="item width2 width2"></div>
<div class="item width2 height2"></div>
</div>
JS
var $container = $('.isotope').isotope({
layoutMode: "masonryHorizontal",
itemSelector: ".boxes",
masonryHorizontal: { rowHeight: 360 }
});
I was expecting it to behave something like this,