Seeking assistance with creating an HTML table with a horizontal scroll and fixed cell width. I have managed to implement the horizontal scroll feature using the code below, but struggling to adjust the cell widths. Any tips or suggestions would be greatly appreciated. Thank you!
Just to add, I am working with Bootstrap 4, in case that information is helpful in finding a solution.
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
}
th,
td {
text-align: left;
padding: 8px;
}
<div style="overflow-x:auto;">
<table>
<tr>
<td>Test</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
</tr>
<tr>
<td>Test</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
<td>124567890</td>
</tr>
</table>
</div>