Sticky header for double row headers #906
-
Beta Was this translation helpful? Give feedback.
Answered by
ingegneri-bruno-clorox
Jan 4, 2024
Replies: 1 comment 1 reply
-
|
The z-index property might affect the stacking of the elements. Ensure that the first header row has a higher z-index than the content rows so that it does not go behind them as you scroll. Also verify that the table layout is set to fixed. You can do this by setting the 'table-layout' CSS property of the table to 'fixed'. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Thanks for the reply! That gave me a better perspective of the roots of the issue.
I was not able to work this out with
table-layoutCSS property.What I had to do was apply these tableProps:
This way, my
<thead>element stays on top of<tbody>cells.Helped me a lot! Thanks again!