4 ms·
This is a real failure of browsers, by the way. The table HTML has all the semantic information necessary, browsers could use it to improve table usability (suc
by paol 7y ago
This is a real failure of browsers, by the way. The table HTML has all the semantic information necessary, browsers could use it to improve table usability (such as sticky headers) but none ever bothered to try.
- Andrex 7y agoDevelopers can opt into this with CSS now. th { position: sticky; top: 0; } I don't think it would have been reasonable to include/force such functionality at the spec level.
- DaiPlusPlus 7y agoUnfortunately this only works on `th` and not `table > thead` or even `thead > tr` which is annoying because things like `tr` backgrounds won’t be displayed which look ugly if you have cell spacing without a cell border.