table
  thead
    tr
      th Header 1
      th Header 2
      th Header 3
      th Header 4
  tbody
    - for(var i=0; i<20; i++) {
      tr
        td Cell content
        td Cell content
        td Cell content
        td Cell content
    - }
View Compiled
table {
  table-layout: fixed;
}

th, td {
  padding: 5px 10px;
  border: 1px solid #000;
}

thead {
  background: #f9f9f9;
  display: table;
  width: 100%;
  width: calc(100% - 18px);
}

tbody {
  height: 400px;
  overflow: auto;
  display: block;
  width: 100%;
  tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.