Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I added a margin, elements don't respond Reply To: I added a margin, elements don't respond

#156817
TheDoc
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;
}