Hey there, I'm currently in need of a solution for fixing a table header in place. I've tried a few strategies, but unfortunately, they haven't worked due to specific functionality limitations.
- One approach involved copying the header and adjusting its position based on scrolltop
(however, this method presented issues with input texts within the header. Cloning the header also cloned the input form, resulting in incorrect session values being sent to the server-side.)
- Another attempt involved using overflow-y to enable content scrolling
(unfortunately, this strategy posed challenges related to cell sizes being dependent on the header size. When applying position:absolute, the cell sizes didn't align with the header size. Setting fixed lengths was complicated as cells are dynamically generated.)
By the way, please refrain from suggesting jQuery plugins as I am working with legacy code and need to find a custom solution. Any fresh ideas would be greatly appreciated!