I am trying to create a form that contains a large amount of data in a table. I am currently trying to fix the header bar, but I can't figure out how to do it. The problem is that I need a fixed row on both the left and top of the table. Some code is included below, but the main idea is that I have a div that is scrollable vertically, which contains a table of two cells (one holds the list for the y axis, the other holds the data associated). The right cell of this table is scrollable horizontally, and the title bar scrolls with it (but not the title bar of the cell on the left). Essentially, I want a title bar that stays at the top of my area when I scroll vertically, but (excepting the left-most cell) scrolls with the table when I scroll horizontally. Any input would be appreciated.
<div id='am_verticalScrollerDiv' style='height: 440px; overflow-y: auto;'>
<table id='am_verticalScrollerLayoutTable' height='100%' width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td id='am_resourceListCell' valign='top'>
<div id='am_resourceListDiv'>
<table id='am_resourceTitleTable' width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr id='am_resource_tableTitleBar'></tr>
</table>
</div>
<table id='am_resourceList' width='100%' border='0' cellpadding='0' cellspacing='0'>
<tbody></tbody>
</table>
</td>
<td id='am_horizScrollCell' align='right'>
<div id='am_horizScrollDiv' style='width:900px; overflow-x: auto;'>
<div id='am_schedDataTitleBarDiv' style='min-width: 900px;'>
<table id='am_schedDataTitleBarTable' width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr class='am_schedule_formatBar'></tr>
<tr id='am_schedule_tableTitleBar' style='font-family: \"Courier New\", Courier, monospace; font-size: 12px;'></tr>
</table>
</div>
<table id='am_scheduleDisplay' width='100%' border='0' cellpadding='0' cellspacing='0' style='table-layout: fixed; empty-cells: show;'>
<thead>
<tr class='am_schedule_formatBar'></tr>
</thead>
<tbody></tbody>
</table>
</div>
</td>
</tr>
</table>
</div>
(All data is inserted via JQuery)