title: Image within td to be height of the td
body: <p>What I want is the image to be the same height of the <code>td</code> when the image isn't there, i.e. 300px, not the height of the image src. I can't specifiy the height of the image, td or table since the parent div represents the height of a responsive container. I've spent far too long on this and tried many things and for some reason the image always insists on being its full height.</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-html lang-html prettyprint-override"><code>&lt;div style='height:300px;width:300px;'&gt;
    &lt;table style='height:100%;width:100%;'&gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;img style='height:100%;width:100%;' src='https://placehold.it/1920x1200'&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
   &lt;/table&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>