title: Why anchor tag does not take height and width of its containing element
body: <p>Here is my <a href="http://jsfiddle.net/ttftC/" rel="noreferrer">JsFiddle</a></p>
  
  <p>When I inspect the size of the anchor tags with Chrome developer tools it shows me <code>144px*18px</code> for the 1st element and <code>310px*18px</code> for the 2nd element.</p>
  
  <p>I want to know why it does not take the height and width of the containing element and how it is being calculated.</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>.gallery {
      background-color: #abcdef;
  }
  .gallery img {
      display: inline-block;
      margin-left: 20px;
      margin-top: 20px;
  }
  .normal {
      height: 160px;
      width: 110px;
      border: 5px solid black;
  }
  .wide {
      height: 160px;
      width: 280px;
      border: 5px solid black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="gallery"&gt;
      &lt;a href="#"&gt; &lt;img class="normal" src=""&gt; &lt;/a&gt;
      &lt;a href="#"&gt; &lt;img class="wide" src=""&gt; &lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>