I have a fake table. I use border-spacing property to create a space between them. But this also creates spacing before first cell and after the last cell.
I would like it to create a space only between those two columns.
HTML:
<div class="table">
<div class="cell"></div>
<div class="cell"></div>
</div>
CSS:
.table {
display: table;
width: 100%;
border-spacing: 11px 0;
border: 1px solid #222;
}
.cell {
display: table-cell;
width: 50%;
height: 20px;
border: 1px solid #999;
background: #ccc;
}
JSFiddle: http://jsfiddle.net/ACH2Q/