Tiny grid layout plugin.
<div id="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
#container {
padding: 0 0 5px 5px;
margin-right: auto;
margin-left: auto;
overflow: hidden;
}
#container > div {
width: 100px;
float: left;
margin: 5px 5px 0 0;
}
var gap = 5; // same as `#container div` margin
var pad = 5; // same as `#container` padding
bricks('container', gap, pad);