table tbody { display: block; height: 500px; overflow-y: scroll; } table thead, tbody tr { display: table; width: 100%; table-layout: fixed; box-sizing: border-box; } table thead { width: calc( 100% - 17px ); background-color: #ddd; }
table tbody { display: block; height: 500px; overflow-y: scroll; } table thead, tbody tr { display: table; width: 100%; table-layout: fixed; box-sizing: border-box; } table thead { width: calc( 100% - 17px ); background-color: #ddd; }