Here's a working example, Have a look and let me know if this is what you're after.
$('#container').masonry({
itemSelector: '.item',
columnWidth : 100,
gutter: 10
});
#container .item {
background-color: gray;
width: 100px;
float: left;
margin-bottom: 10px;
}