title: How to add a margin to a table row <tr>
body: <p>I have a table containing many rows. Some of these rows are <code>class="highlight"</code> and signify a row that needs to be styled differently and highlighted. What I'm trying to do is add some extra spacing before and after these rows so they appear slightly separated from the other rows. </p>
  
  <p>I thought I could get this done with <code>margin-top:10px;margin-bottom:10px;</code> but it's not working. Anyone knows how to get this done, or if it could be done? Here's the HTML and I've set the 2nd tr in the tbody to class highlight.</p>
  
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
       &lt;th&gt;Header 1&lt;/th&gt;
       &lt;th&gt;Header 2&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
       &lt;td&gt;Value1&lt;/td&gt;
       &lt;td&gt;Value2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="highlight"&gt;
       &lt;td&gt;Value1&lt;/td&gt;
       &lt;td&gt;Value2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
       &lt;td&gt;Value1&lt;/td&gt;
       &lt;td&gt;Value2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
       &lt;td&gt;Value1&lt;/td&gt;
       &lt;td&gt;Value2&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>