table header fixed on scroll down

TjutjunkovDf

New Member
I have a table with header on it. I need the header to be fixed when the user scrolls the table data.my table is as follows\[code\]<div style="height: 300px;overflow: auto"> <table> <thead> <tr> <th> Nr. </th> <th> Name </th> <th> Status </th> <th> Date </th> </tr> </thead> <tbody> <tr> <?php while($record = odbc_fetch_array($result)) { ?> <td> <?php echo$record['Nr']; ?></td> <td> <?php echo$record['Name']; ?></td> <td> <?php echo$record['Status']; ?></td> <td> <?php echo$record['Date']; ?></td> <?php }?> </tr> </tbody></table></div> \[/code\]Let me know if you need more information.
 
Back
Top