Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tables within a scrollable div #242

Closed
eceyhan opened this issue Sep 9, 2015 · 5 comments
Closed

Multiple tables within a scrollable div #242

eceyhan opened this issue Sep 9, 2015 · 5 comments
Labels

Comments

@eceyhan
Copy link

eceyhan commented Sep 9, 2015

I have a scroll-able div and in that div, there are multiple table elements. As the user scrolls, the corresponding table header needs to stay fixed.

Here is the to the jsfiddler : http://jsfiddle.net/eceyhan/f0rjzqL9/

Any help is greatly appreciated.

Thanks..

@mkoryak
Copy link
Owner

mkoryak commented Sep 9, 2015

it helps if you include jquery and this plugin as deps in the jsfiddle, otherwise it doesnt work very well.

how about something like this:

http://jsfiddle.net/f0rjzqL9/2/

@eceyhan
Copy link
Author

eceyhan commented Sep 9, 2015

Thank you for your response.

It works great but I see table borders are displayed beneath the scrollable div. Please see below.

Do you know why this happens?

Thanks..

jsfiddle net_f0rjzql9_2_

@mkoryak
Copy link
Owner

mkoryak commented Sep 9, 2015

it happens because of fixed positioning. I dont have time to play around with this right now, but I think this can be fixed with css.

@mkoryak
Copy link
Owner

mkoryak commented Sep 10, 2015

There was a bug with absolute positioning that I just fixed, see updated fiddle:
http://jsfiddle.net/f0rjzqL9/3/

note that this fix only exists on master at this time.

@lock
Copy link

lock bot commented Dec 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants