News for hackers. Stuff that matters.
Re:A Case Study of Complex Table Design by SirWart on Thursday May 07, 2020 @10:52PM (#23110930)
The most successful I’ve been at this is clever uses of position: sticky. You have to fall back to absolute positioning and scrolling the fixed headers in JS on browsers that aren’t as advanced in their position: sticky support though.
Re:A Case Study of Complex Table Design by sixQuarks on Monday May 11, 2020 @09:53AM (#23142134)
I figured it out without using JavaScript. The trick is to use a <th> on the first child of each tr, which becomes the sticky left column. Position sticky works on th’s.

It’s not ideal, but this works on about 95% of all browsers.