title: How to color all 4 sides of a TD cell border via CSS in an HTML table?
body: <p>I have this code where I am trying to color all 4 sides of a TD cell with red, but if you run the code, only the bottom and the right border are getting color (in Mozilla Firefox).  Is there a way to color all 4 borders?</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>#selections_table table {
    border-collapse: collapse;
  }
  
  #selections_table td,
  th {
    border: 1px solid black;
    padding: 3px 4px 3px 4px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="selections_table"&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;th&gt;#&lt;/th&gt;
          &lt;th&gt;Model&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;1&lt;/td&gt;
          &lt;td style="border-color:red"&gt;XXX-8&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This question/answer does not help: <a href="https://stackoverflow.com/questions/27464228/css-border-declare-4-sides-color-width-in-one-line">CSS Border declare 4 sides, color, width, in one line</a></p>
  
  <p>If there is a way to style it via a class, that will be better than using a an inline style command.</p>