I have a large scroll-able table I built with Twitter bootstrap but would like prevent the first column from scrolling. Is this possible?
<div class="row">
<div class="span12" style="height: auto !important;overflow-x: scroll;">';
<table class="table table-striped table-bordered table-condensed">
<thead>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
</thead>
<tbody>
<tr>
<td>data 1</td>
<td>data 2</td>
<td>data 3</td>
</tr>
</tbody>
</table>
</div>
</div>
Here’s a demo of a possible solution, based on my earlier comment:
DEMO: Fixed Column on Bootstrap Table
Note that this isn’t really tested or even a complete solution for fixing a column, but rather a proof of concept for you to build on.
Here is the relevant markup. This example uses a striped, bordered, condensed Bootstrap table
And the required jQuery:
and the needed CSS: