title: How do I select the “last child” of element with specific class name in CSS?
body: <p>I have a HTML table and I want the last row, excluding the row with class <code>.table-bottom</code>, and remove its <code>border-bottom</code>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table cellpadding="0" cellspacing="0" style="width:752px;" class="table"&gt;
      &lt;tr class="table-top"&gt;&lt;th style="width:40px;"&gt;ID&lt;/th&gt; &lt;th&gt;Post title&lt;/th&gt; &lt;th&gt;Date&lt;/th&gt; &lt;th&gt;Owner&lt;/th&gt; &lt;th style="width:100px;"&gt;Actions&lt;/th&gt;&lt;/tr&gt;
      &lt;tr class="table-middle"&gt;&lt;td&gt;1&lt;/td&gt; &lt;td&gt;Test&lt;/td&gt; &lt;td&gt;16.7.2013&lt;/td&gt; &lt;td&gt;Admin&lt;/td&gt; &lt;td&gt;Delete&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="table-middle"&gt;&lt;td&gt;2&lt;/td&gt; &lt;td&gt;Test 2&lt;/td&gt; &lt;td&gt;3.8.2013&lt;/td&gt; &lt;td&gt;Admin&lt;/td&gt; &lt;td&gt;Delete&lt;/td&gt;&lt;/tr&gt;
      &lt;tr class="table-bottom"&gt;&lt;td colspan="5"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <pre class="lang-css prettyprint-override"><code>.table tr th {
  color:#929191;
  font-weight:bold;
  font-size:14px;
  text-align:left;
  padding-left:19px;
  border-right:1px solid #d7d7d7;
  border-bottom:1px solid #d7d7d7;
  }
  .table tr th:last-child {
  border-right:none;
  }
  .table tr td {
  color:#929191;
  font-weight:bold;
  font-size:12px;
  padding:19px;
  border-right:1px solid #d7d7d7;
  border-bottom:1px solid #d7d7d7;
  }
  .table tr td:last-child {
  border-right:none;
  }
  .table .table-middle:last-of-type td {
  border-bottom:none;
  background:red;
  }
  .table tr.table-middle td:first-child {
  text-align:center;
  }
  .table tr th:first-child {
  text-align:center;
  padding-left:0px;
  }
  .table tr.table-bottom td {
  border-right:none;
  border-bottom:none;
  }
  </code></pre>
  
  <p>But the <code>.table .table-middle:last-of-type td</code> selector is not working.</p>
  
  <p>Here is the <strong><a href="http://jsfiddle.net/VAqSw/" rel="nofollow noreferrer">Fiddle</a></strong>.</p>
  
  <p>Any Ideas?</p>