I have a table with below html
<div class="wrapper">
<div class="tblWrapper">
<table id="tbl">
<thead>
<tr>
<th class="first">header</th>
<th>header</th>
<th>header</th>...........<th class="last">header n</th>
</tr>
</thead>
<tbody>
<tr><td class="first"></td><td></td><td></td><td class="last"></td></tr>
</tbody>
</table>
</div>
</div>
css
.wrapper{ position: relative; }
.tblWrapper{
width: 98%;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
#tbl{ .first, .last{ position: absolute; } }
}
Want I am trying to achieve here is first and last columns should be fixed and rest of the columns must be scrollable.
The issue here is fixed columns overlaps with other columns
and other issue is entire table is not fixed in the parent div width(having max-width: 630px;
) its spreading out.
Any working around please..........