Hacker News new | ask | show | jobs
by deergomoo 1643 days ago
> It's actually incredible how many modern designs I see today that are portraying a table, but have recreated the <table> element (and its associated <tr> and <td> elements) in a soup of flex layout divs and such

To play devil’s advocate, <table> can be frustratingly inadequate even for tabular data, if you want to add some bells and whistles.

Things like resizable/reorderable columns aren’t too tricky, but if you want things like sticky rows or columns things get very messy very quickly.

I’m convinced that the negative qualities of modern web development stem from the built-in controls being largely stuck in 1995.

2 comments

Just a heads up (pun maybe subconsciously intended): "position: sticky" works surprisingly well on table-headers.

Demo: https://jsfiddle.net/Lkye3cpq/

As a counterpoint Firefox can select and copy columns or rows from traditional tables.