title: HTML combine border of two <a>
body: <p>I have a table with multiple <code>&lt;a&gt;</code> elements within:</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>.TableClass td {
    background-color: #050;
    height: 150px;
  }
  
  .TableClass a {
    background-color: #f00;
    width: 100px;
    height: 100px;
    display: block;
    border: 5px solid #000;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="TableClass"&gt;
    &lt;table cellspacing="0" cellpadding="0"&gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;a href="#"&gt;&lt;/a&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;a href="#"&gt;&lt;/a&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Fiddle: <a href="https://jsfiddle.net/p937jbee/1/" rel="nofollow noreferrer">https://jsfiddle.net/p937jbee/1/</a></p>
  
  <p>Is there a way to avoid double borders?</p>
  
  <p><a href="https://i.stack.imgur.com/tgtNc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tgtNc.png" alt="enter image description here"></a></p>
  
  <p>UPDATE:
  I can't change the HTML code and there are multiple <code>&lt;td&gt;</code> instead of 2 of my example.</p>