I have a dynamic table which have so many columns and rows
and the problam is I want to stick the th and left-most td when scroll is empty like they are floating on their place not going anywhere with the scroll moving.
Here is the fiddle the code is not working in the fiddle because of the

display is just temporary because in actual it is fetching from database. I want to float the header and leftmost td having value (hello) and (make it float).
try this:
apply to
#roomsas below:also, give
position: relativeto<tr>as below:and
<td>and<th>giveheightto it as below:I hope this would help