#grid { margin-right:3px; } #grid .item { box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; border-top:3px solid #fff; border-left:3px solid #fff; }