I have a table with 7 columns (td). I'm setting a fixed width and it's working perfectly using a browser on desktop. However, When I resize my browser to simulate a mobile phone or even accessing this page through a mobile device, it won't respect column width.
I won't put the entire html, but it's basically:
<div class="table-responsive">
<table>
<tr>
<td class="w-large">Column 1</td>
<td class="w-medium">Column 2</td>
<td class="w-medium">Column 3</td>
<td class="w-medium">Column 4</td>
<td class="w-medium">Column 5</td>
<td class="w-medium">Column 6</td>
<td class="w-medium">Column 7</td>
</tr>
</table>
</div>
CSS:
.w-large {
width: 198px;
}
.w-medium {
width: 176px;
}
Is there a way to keep column width on mobile? Does bootstrap have a special class to do this similar to table-responsive?