Displays and nth-child

by kshep92

HTML

<div class="table">
<div class="row">
<div class="cell">This is one</div>
<div class="cell">This is the Other</div>
<div class="cell">This is the Other</div>
<div class="cell">This is the Other</div>
</div>
</div>

CSS

div.cell {
    background-color: #ccc;
    border: 1px solid #000;
    float: left;
    margin: 0px 10px;
}

div.cell:nth-child(odd) {
    margin-left: 0;
}