Sticky position in a table

Hello everyone :slightly_smiling_face:

I have a question about displaying a table.

I have a large table that can only be fully displayed on a big screen. So, I used Joyce’s trick by setting fixed sizes and wrapping the table in a div with a condition on the overflow property to add horizontal scrolling when the screen is too small. video link

My problem is that I need to make my header sticky, but I can’t get it to work with my current settings… Do you have any suggestions?

Thanks in advance, have a great day! :sunny: