TableSorter 2.0 Plugin - Enable Table scroll

Jake picture Jake · Jan 21, 2010 · Viewed 8.9k times · Source

I am using the Tablesorter plugin and it works great. Currently, I achieve table scrolling using a div wrapper. Is it possible to make the table scroll, keeping the headers visible while scrolling and not using any divs?

Answer

graphicdivine picture graphicdivine · Jan 22, 2010

Try this CSS, adjusting the height to suit:

tbody{height: 4em; overflow: scroll}

Example: http://jsbin.com/ofice