title: How can I collapse border of only one row in table HTML
body: <p>I've been trying to collapse borders in my last two rows of Table, but I can't get the result I want, I already tried using <code>border:hidden, border: 0, border-collapse: collapse</code>. But nothing seems to work, I'm very new at this, If you guys have any solution for me, I'd be really glad.</p>
  <p>Here is my HTML table code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.stock-table {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5%;
    font-size: 0.9em;
    min-width: 400px;
    border-radius: 10px 10px 0 0;
    border-collapse: separated;
    overflow: hidden;
    box-shadow: 0 0 .25em .25em rgba(0, 0, 0, 0.25);
  }
  
  .stock-table tr:last-child td:first-child {
    border-top-left-radius: 10px;
    border-right: hidden;
  }
  
  .stock-table tr:last-child td:last-child {
    border-top-right-radius: 10px;
  }
  
  .stock-table tbody tr {
    border-bottom: 1px solid #dddddd;
  }
  
  .directTR:nth-of-type(even) {
    background-color: #f3f3f3;
  }
  
  .stock-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
  }
  
  .stock-table td {
    padding: 5px 15px;
  }
  
  .stock-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    color: #ffffff;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class = "stock-table"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;td&gt; DRUG &lt;/td&gt;
        &lt;td&gt; MEASURE &lt;/td&gt;
        &lt;td&gt; AMOUNT &lt;/td&gt;
        &lt;td&gt; COST &lt;/td&gt;
        &lt;td&gt; TOTAL &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;c:forEach items = "${detailsList}" var = "detail"&gt;
        &lt;tr class = "directTR"&gt;
          &lt;td&gt; ${detail.medicine_name} &lt;/td&gt;
          &lt;td&gt; ${detail.medicine_measure} &lt;/td&gt;
          &lt;td&gt; ${detail.amount} &lt;/td&gt;
          &lt;td&gt; &lt;span&gt;$&lt;/span&gt;${detail.price}&lt;/td&gt;
          &lt;td&gt; &lt;span&gt;$&lt;/span&gt;${detail.total}&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/c:forEach&gt;
      &lt;tr class = "finalTR"&gt;
        &lt;td&gt;subTotal:&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span&gt;$&lt;/span&gt;${subtotal}&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class = "finalTR"&gt;
        &lt;td&gt;Total (+IVA):&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;/td&gt;
        &lt;td&gt;&lt;span&gt;$&lt;/span&gt;${total}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;      </code></pre>
  </div>
  </div>
  </p>
  <p>The borders I want to remove are:</p>
  <p><a href="https://i.stack.imgur.com/rT4RL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rT4RL.png" alt="My Table" /></a></p>