For the life of me I cannot figure out how to remove the wide gutters and set to 0 when using the fluid/percentage layout.
I've tried setting gutterWidth: 0
and the margin and padding to 0%
, but it still doesn't work.
Here is the code from the Masonry site.
$('#container').masonry({
itemSelector: '.box',
gutterWidth:0,
// set columnWidth a fraction of the container width
columnWidth: function (containerWidth) {
return containerWidth / 5;
}
});
CSS
.box {
width:33%;
margin:0%;
padding:0%
}
.box img {
width:100%;
height:auto
}
What do I have to adjust?