alohaaaron
Programmer
Hi, I have this web page below but instead of having column one scroll by itself, I would like all columns 1, 2 & 3 to scroll at once with a single vertical scrollbar with a fixed table header. How would I do this? Thanks, Aaron
<html>
<head>
<style type="text/css">
#scrollBody{text-align : left; width : 600px; height : 200px; overflow: auto;}
</style>
</head>
<body>
<table border="1">
<thead>
<tr width="600px">
<th>Column1</th><th>Column2</th><th>Column3</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div id="scrollBody">
Hmmm,<br>
I have a long table which doesn't fit on the screen without scrolling.<br>
Is it possible to fix the table-head and scroll the table-body?<br>
Thanks for every idea,<br>
<br>
=================<br>
repeat text for scroll<br>
=================<br>
Hmmm,<br>
I have a long table which doesn't fit on the screen without scrolling.<br>
Is it possible to fix the table-head and scroll the table-body?<br>
Thanks for every idea,<br>
</div>
</td>
<td>col2</td>
<td>col3</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Column 1 Footer</th><th>Column 2 Footer</th><th>Column 3 Footer</th>
</tr>
</tfoot>
</table>
</body>
</html>