I'm attempting to create a responsive image gallery using the Masonry jQuery plugin, but despite reading numerous articles and forum posts on the topic, I can't seem to get it to work properly. The gallery is displaying many blank spaces.
My approach involves using jQuery Masonry along with basic CSS and HTML.
.flow { width: 95%; height: auto; min-height: 500px; margin: 0 auto}
.item {
margin-bottom: 10px;
}
`
<div class="item">
<img src="http://www.smartynet.com.br/flampic/img/1small.jpg" />
</div>
<div class="item">
<img src="http://www.smartynet.com.br/flampic/img/2small.jpg" />
</div>
</div>
I have also created a JSFiddle to demonstrate my issue.
I am aiming to build a gallery similar to that of Flickr. Is there a better approach that someone could suggest to help me resolve this problem?