Possible Duplicate:
How to freeze table header
I am having a table which is getting populated through ajax call, having fallowing structure-
<table>
<thead>
<tr>
<th colspan="4">Current</th>
<th colspan="4">New/Requested</th>
</tr>
<tr>
<th nowrap="nowrap">RSD </th>
<th nowrap="nowrap">CRSD </th>
<th nowrap="nowrap">MSD </th>
<th nowrap="nowrap">Open QTY </th>
<th nowrap="nowrap">CRD </th>
<th nowrap="nowrap">CRSD </th>
<th nowrap="nowrap">MSD </th>
<th nowrap="nowrap">Open QTY </th>
<th nowrap="nowrap">Action</th>
<th nowrap="nowrap">Reason</th>
<th nowrap="nowrap">Action Code Status </th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
.....plenty of rows
</tr>
</tbody>
</table>
I am trying to freeze the header of this table..
Note: I want to do it on page scroll not table body scroll.
I tried it in all the way as suggested in this post, but nothing seems to work for me...
Any ne one have some different approach or some working example that would be a great help for me.
jsFiddle of problem : http://jsfiddle.net/UX6Sk/