title: Table with fixed thead and scrollable tbody; thead columns fit tbody columns
body: <p>I need to create a table with fixed thead and scrollable tbody. I also need thead columns to be fit to tbody columns.</p>
  
  <p>For example I have table like this:</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;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;
          aaa
        &lt;/th&gt;
        &lt;th&gt;
          aaabbb
        &lt;/th&gt;
        &lt;th&gt;
          aaabbbccc
        &lt;/th&gt;
        &lt;th&gt;
          aaabbbcccddd
        &lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;
          asdf
        &lt;/td&gt;
        &lt;td&gt;
          asdfaaabbb
        &lt;/td&gt;
        &lt;td&gt;
          asdfaaa
        &lt;/td&gt;
        &lt;td&gt;
          asd
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Have you any ideas to fit thead columns to tbody columns?</p>