Table headers stay fixed at top for long HTML tables when scrolling using jQuery sticky plugin

submitted by uklmhb on 09/30/16 1

jQuery sticky plugin can be used to keep HTML table header to stay fixed at the top when user scrolls. jQuery sticky plugin can be downloaded from: github.com/walmik/jquery.sticky You need to copy jquery.sticky.min.js and style.css to your working directory. (Sometimes I found table header not align with body well when scrolling down. I slightly modify jquery.sticky.js and directly use jquery.sticky.js, for example I found my table header 10% less when I scrolled down, in this case in jquery.sticky.js line 91 change $(firstRowThArr[i]).width(width); to $(firstRowThArr[i]).width(Number(width)*1.1); ) More about this video: jiansenlu.blogspot.com/2014/07/table-header-to-stay-fixed-at-top-when.html

Leave a comment

Be the first to comment

Collections with this video
Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×