Scroll Table Body is a cross-browser lightweight plugin that allows an html table body to scroll while the header and footer stay fixed. It works with cells that span multiple columns (colspan), with horizontal scrolling, and with fixed width or fluid tables, even when you resize!
<thead>
, <tbody>
, and <tfoot>
if you want it)
.scrollTableBody()
on your table element, which by default displays 10 rows of your table and scrolls the restrowsToDisplay
as an option. For example, $('table').scrollTableBody({rowsToDisplay:5});
For best results, wrap the table in a div and apply the fixed width to the wrapping div, as shown below.
Or, check out the horizontal scroll demo or basic scroll demo.
Name | Relation to Michael | Saying | Net Worth |
---|---|---|---|
Michael Bluth | Himself | That was a gimme | $1,000,000.00 |
George Bluth | Father | There's always money in the banana stand | $10,000,000.00 |
Lucille Bluth | Mother | AAAAAAHHHHHH (for Gene Parmesan) | $5,000,000.00 |
GOB Bluth | Older Brother | Illusion, Michael | $100.00 |
Lindsay Bluth | Twin Sister | Anithing | $10.00 |
Buster Bluth | Younger Brother | I am not a monster! | $1,000,000.00 |
George Michael Bluth | Son | Dangerous Cousins | $100.00 |
Tobias Funke | Brother-in-law | Nevernude | $5.00 |
Maeby Funke | Daughter-in-law | Marry me! | $1,000,000.00 |
Ann Veal | Son's Girlfriend | Her? | Priceless |
Lucille Austero | None | My very oldest friend Lucille | $10,000,000.00 |
Bob Loblaw | Attorney | Bob Loblaw's Law Blog | $500,000.00 |
Total Net Worth: | $27,500,215.00 |