PDA

View Full Version : Locking Table Headers


tacticalts
04-26-2011, 02:50 PM
Is there a way I can lock the table headers (<th>) in my table?

The client wants the headers to remain at the top of the table while the table scrolls, but I can't seem to figure out how.

If anyone has an example or a link to sample code it would be greatly appreciated.

Thanks
Bob

tacticalts
04-26-2011, 03:14 PM
Nevermind, I found out if I used a tbody tag with overflow set to auto, the header remained fixed.