I remember seeing a plugin that did this, can't remember what it was called though. Basically, what that plugin did. was if it detected the thead scroll out of view, it would place a copy of it in the DOM in it's own div, set to position:fixed.

This way you emulate the table scrolling down, but the titles staying in place.

Andy Matthews wrote:
Use Excel?

:)
-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Matt Wilson
Sent: Wednesday, April 08, 2009 9:53 AM
To: jQuery (English)
Subject: [jQuery] How can I freeze the title row in a table?


I have a table with lots of rows, and when I scroll down, I can't see the
row with the column titles.

How can I freeze that row in place so I can still see it as I scroll down?


Reply via email to