title: Table height content inside moves
body: <p>I am trying to achieve same look of table as on image, but I can't get it to work. Whenever I add 100% height on table, the elements inside get out of place. How can I make my code to work like on the image? I want the table to default have 100% height with a border, and overflow-x on responsive view.
  <a href="https://i.stack.imgur.com/mBHZm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mBHZm.png" alt="enter image description here" /></a>
  <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>table {
    width: 100%;
    border: 1px solid black;
  }
  
  .container {
    width: 100%;
    box-sizing: border-box;
    padding: 0px 10px;
  }
  
  .heading &gt; th {
    text-align: left;
  }
  
  
  .name {
    display: flex;
    align-items: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  &lt;table&gt;
    &lt;tr class="heading"&gt;
    &lt;th&gt;Name&lt;/th&gt;
    &lt;th&gt;Status&lt;/th&gt;
    &lt;th&gt;Rating&lt;/th&gt;
    &lt;th&gt;Test&lt;/th&gt;
  &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="name"&gt;
      &lt;img src="https://via.placeholder.com/80x40" /&gt;
      John Johnson&lt;/td&gt;
       &lt;td&gt;Free&lt;/td&gt;
      &lt;td&gt;Test&lt;/td&gt;
      &lt;td&gt;Test&lt;/td&gt;
  
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>