Having an issue with Bootstrap responsive table functionality: it works well for tables with horizontal headings, but I'm struggling to achieve the desired layout for my table with vertical headings.
I have several 2-column tables for specifications that are structured like this:
<table class="table-responsive">
<tr>
<th>FRAME</th>
<td>ALUMINUM</td>
</tr>
<tr>
<th>POWER</th>
<td>500W</td>
</tr>
<tr>
<th>BATTERY</th>
<td>9</td>
</tr>
<tr>
<th>WEIGHT</th>
<td>45KG</td>
</tr>
<tr>
<th>PRICE</th>
<td>333$</td>
</tr>
</table>
Everything looks fine on desktop view, but on mobile devices, the text gets squished together and becomes unreadable. My goal is to allocate 30% width for the th elements, fill the remaining 70% with td content, and enable horizontal scrolling if necessary to keep the table legible on smaller screens.