Someone on Hacker News posted Please Make Your Table Headings Sticky, a plea for web developers to make their table headings sticky.

I’ve honestly never given it much thought, but I could see it being a nice UX improvement on large tables.

Turns out it’s pretty simple to implement:

table {
  position: sticky;
  top: 0;
}

Maybe I’ll remember it next time I’m working on a huge table.