title: fixed header table deform when resizing window
body: <p>this fixed-header table deforms column when resizing window horizontally. Is there way to stop that?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;style&gt;
          table {
              width: 100%;
              table-layout: fixed;
              border-collapse: collapse;
          }
          table th {
              border-left: 1px solid blue;
          }
          table th,
          table td {
              padding: 5px;
              text-align: left;
              border-left:1px solid blue;
          }
  
          table th, table td {
              width: 150px;
          }
          table thead tr {
              display: block;
              position: relative;
          }
          table tbody {
              display: block;
              overflow: auto;
              width: 100%;
              height: 300px;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;table&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;id&lt;/th&gt;
                  &lt;th&gt;pick_up_location&lt;/th&gt;
                  &lt;th&gt;destination&lt;/th&gt;
                  &lt;th&gt;instruction&lt;/th&gt;
                  &lt;th&gt;created_at&lt;/th&gt;
                  &lt;th&gt;status&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;12322&lt;/td&gt;
                  &lt;td&gt;Whanga Road&lt;/td&gt;
                  &lt;td&gt;Crescent Street&lt;/td&gt;
                  &lt;td&gt;Call when arrive&lt;/td&gt;
                  &lt;td&gt;123442342331&lt;/td&gt;
                  &lt;td&gt;comming&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Keep in mind this fixed-header table. Mean when you have 100 rows. you can scroll the row but the header position is fixed. The display block attributes can not be removed.</p>
  
  <p>UPDATE:</p>
  
  <p>With Mark answer, the table looks fine but still deform at small screen. A screenshot of it</p>
  
  <p><a href="https://i.stack.imgur.com/kKV7g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kKV7g.png" alt="enter image description here"></a></p>