CSS fixed heading title

I have a web page that contains an HTML table. The table is longer than the page size, so the user needs to scroll down the page to see the complete table.

<table>
<tr>
<th></th><th></th>
</tr>
<tr>
<td></td><td></td>
</tr>
</table>

      

I want that when the user scrolls down the page and as the table header disappears, it should lock in place so that the user can view the specific column value with its header.

Is it possible to have a fixed title when the user scrolls down?

+3


source to share





All Articles