I want my table to be scrollable vertically with fix header. I want also to make the table width fit on the browser.
**Please, as much as possible, do not make any changes on the 'html' part, just on the 'css' part,
Here is my JSfiddle
table{
border-spacing: 0;
border: 2px solid black;
}
table tbody tr td, thead th {
border-right: 1px solid black;
}
<div class="table_container">
<table>
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
<th>Head 3</th>
<th>Head 4</th>
<th>Head 5</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content 1</td>
<td>Content 2</td>
<td>Content 3</td>
<td>Content 4</td>
<td>Content 5</td>
</tr>
<tr>
<td>Content 1</td>
<td>Content 2</td>
<td>Content 3</td>
<td>Content 4</td>
<td>Content 5</td>
</tr>
<tr>
<td>Content 1</td>
<td>Content 2</td>
<td>Content 3</td>
<td>Content 4</td>
<td>Content 5</td>
</tr>
</tbody>
</table>
</div>