Scrollable tbody in tables #39658
Unanswered
Gregory-Lange
asked this question in
Q&A
Replies: 4 comments 1 reply
-
Could you maybe create a reproducible use case with CodePen, StackBlitz, etc. that used to work before and not anymore so that the community can start digging from something? |
Beta Was this translation helpful? Give feedback.
1 reply
This comment was marked as spam.
This comment was marked as spam.
-
You can do this by using an additional div and the classes .sticky-top / .top-0
|
Beta Was this translation helpful? Give feedback.
0 replies
-
i can do that one done as soon as possible |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know in past versions of bootstrap even when I put tables inside other items, cards, containers, etc., I was able to make the body scroll with only minor work. However in bootstrap 5.3 I am unable to do so unless I really get some things changed but then as soon as I change those items tables become a nightmare to maintain per page. Does anyone have a way of doing this with minimal impact? I am about to just give up on Bootstrap tables and get the theme from it but make my own sense there seems to be an issue in the default tables. Any help would be wonderful.
What I have done to get the body to scroll:
tbody class
display: table-caption;
overflow-y: auto;
then depending on @media height
height: XXXX;
everything else causes the table to not look correct or still doesn't allow for a scrolling body.
Thanks,
Greg
Beta Was this translation helpful? Give feedback.
All reactions