If you have the option of giving a fixed width to the table cells (and a fixed height to the header), you can used the position: fixed
option:
http://jsfiddle.net/thundercracker/ZxPeh/23/
You would just have to stick it in an iframe
. You could also have horizontal scrolling by giving the iframe
a scrollbar (I think).
Edit 2015
If you can live with a pre-defining the width of your table cells (by percentage), then here's a bit more elegant (CSS-only) solution: