I've been experimenting with different methods to achieve a masonry style layout for my posts. So far, using float:left seems to work almost perfectly, but occasionally there are gaps between the posts. I'm on the lookout for a solid solution to address this issue. Below is the snippet of CSS and HTML that I've been working with:
<script async src="//jsfiddle.net/ariefroni/gd9nna8m/4/embed/"></script>
If you have any suggestions to help me fix this problem, please feel free to share. Thank you! Additionally, I am open to utilizing scripts if necessary.
Also, here is the link to the jsfiddle: https://jsfiddle.net/ariefroni/gd9nna8m/4/