tags:

views:

33

answers:

2

Im trying to put margins on the bottom of a table to separate it from the content below it (another table). I tried creating a class:

.seg_table {
margin-bottom: 25px;
}

And then applied it to the table like this:

<table class="seg_table">
<tr>
<td>Some Content Here</td>
</tr>
</table>

Im new to working with tables so I assume I am making some simple mistake here. Normally, I would use a div to space out the content but there are forms involved and that would invalidate my code.

A: 

Wait, I got it. Sorry - my reset style sheet was interfering. Thanks, anyhow.

Thomas
A: 

.seg_table { margin-bottom: 25px; }

I think its better to use

table.seg_table{ margin-bottom: 25px; }

Jaspero
Just curious - why is it better to target that way?
Thomas