Skip to content

A jQuery plugin that will make large tables more usable by having the table header stick to the top of the screen when scrolling.

License

Notifications You must be signed in to change notification settings

mikesir87/StickyTableHeaders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StickyTableHeaders

So what's it good for? Well, let's say you want to display a long list of fairly uniform tabluar data, like stock exchange listings or sport statistics but you don't want your users to get lost in the data as they scroll down on the page.

StickyTableHeaders to the rescue: By applying the StickyTableHeaders jQuery plugin to the table, the column headers will stick to the top of the viewport as you scroll down.

Go ahead and try out a demo.

The code is based on this proof of concept.

Future Work

  • Writing a better readme :)

Known Issues

  • You need to set the padding of the <th>s explicitly in the css in order to make the plugin work in Internet Explorer
  • Internet Explorer: Adding horizontal margin to the table causes the header to be misaligned when scrolling. (Issue #10)

Browser Support

The plugin has been verified to work in:

  • Chrome 14
  • Firefox 7
  • Internet Explorer 9
  • Internet Explorer 8
  • Safari 5

NOTE: It does not currently work in Internet Explorer 7 (but it degrades nicely)

About

A jQuery plugin that will make large tables more usable by having the table header stick to the top of the screen when scrolling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%