Home

Awesome

<p align="left"> <h1> <a href="https://github.com/mkoryak/floatThead/releases">jquery.floatThead</a> <a href="https://unpkg.com/floatthead/dist/jquery.floatThead.min.js"><img src="http://img.badgesize.io/https://unpkg.com/floatthead/dist/jquery.floatThead.min.js?compression=gzip&style=flat-square"></a> <a href="https://www.npmjs.com/package/floatthead"><img src="https://img.shields.io/npm/v/floatthead.svg?style=flat-square"></a> <a href="https://github.com/mkoryak/floatThead/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/floatthead.svg?style=flat-square"></a> </h1> </p>

gif showing plugin in action

Documentation & Examples: http://mkoryak.github.io/floatThead/

Float the table header on scroll. No changes to your HTML/CSS are required, it just works. Supports floating the header while scrolling within the window or while scrolling within a container with overflow. Supports responsive tables.

Install

Package managers

npm install floatthead
bower install floatThead

Download code

Latest Release (zip)

Via CDN

https://cdnjs.com/libraries/floatthead/
https://www.jsdelivr.com/#!jquery.floatthead
https://unpkg.com/floatthead

<!-- Latest compiled and minified JavaScript -->
<script src="https://unpkg.com/floatthead"></script>
<script>
  $(() => $('table').floatThead());
</script>

For java people

Webjar

Wrappers

vuejs component by @tmlee

angularjs directive by @brandon-barker

yii2 framework wrapper by @bluezed

Why not just use position:sticky?


You probably should! This plugin was created years before that existed. There are still a few reasons why you might want to use this plugin:

Things this plugin does:


Things this plugin does NOT do:


Common Pitfalls

If you use css and html best practices, this plugin will work. If you are stuck in 1999, you better read the faq.

How to get help with the floatThead

All issues should be reported through github.

Requirements:

Supported Browsers:

Change Log

see CHANGELOG.md

Who is using floatThead ?

Ctrl O

WheresTheGig.com

Google

tld-list.com

Samsung

Around 153,000 hits on github code search

License

MIT