I'm making a simple masonry style layout in pure CSS. It seemed to be clean and simple but at last some bug appear.
JSFIDDLE: http://jsfiddle.net/cheezburger/HXjtK/
CSS:
.masonry { /* Masonry container */
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
-moz-column-gap: 6px;
-webkit-column-gap: 6px;
column-gap: 6px;
}
.item { /* Masonry bricks or child elements */
background-color: #eee;
display: inline-block;
margin: 2px 0;
width: 100%;
}
As you can see, I've written to display 3 columns. The first row is good, but why not the others? Is it a known bug?