Home › Forums › CSS › I added a margin, elements don't respond › Reply To: I added a margin, elements don't respond
November 21, 2013 at 10:38 am
#156817
Member
Table rows cannot have margin values. Can you increase the padding? That would work. Otherwise you could insert a
<tr class="spacer"></tr>
before and after the class=”highlighted” rows.
http://stackoverflow.com/questions/10690299/how-to-add-a-margin-to-a-table-row-tr
It’s really ugly, but you could add another row and style it like this:
.table_grid thead tr.spacer th {
background: none;
height: 5px;
display: block;
padding: 0;
}