<div class="table-scroll">
<table class="fixed-col-table">
<thead>
<tr>
<th>Employee</th>
<th>Department</th>
<th>Position</th>
<th>Email</th>
<th>Phone</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>Engineering</td>
<td>Frontend Dev</td>
<td>john@example.com</td>
<td>555-0101</td>
<td>Active</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>Marketing</td>
<td>Lead SEO</td>
<td>jane@example.com</td>
<td>555-0102</td>
<td>Active</td>
</tr>
<tr>
<td>Mike Ross</td>
<td>Legal</td>
<td>Associate</td>
<td>mike@example.com</td>
<td>555-0103</td>
<td>Leave</td>
</tr>
</tbody>
</table>
</div>
Back to Snippets
Sticky First Column Table CSS
Display large data sets on small screens easily with this responsive table. The first column stays fixed while the user scrolls horizontally, so they never lose track of which row they are reading.
402