4 ms·
> CSS grid, where were you 15+ years ago? Hiding under the pseudonym 'table'.
by mmanfrin 7y ago
> CSS grid, where were you 15+ years ago?
Hiding under the pseudonym 'table'.
- davnicwil 7y agoI think this is related to the sibling comment, i.e. the document vs application container question. I wonder if the 'using table for layout is bad' principle of the web should have been reevaluated in the context of SPA web apps in the same way that, for example, 'separate markup, behavior and styles' was. I know all these things are still controversial and no consensus has been reached, but I'd suggest that this might have been a good idea if we'd started trying it 5ish years ago, in some usecases. Without doubt, css grid is better, but as you suggest we've always had the means to do the job with 'table' right there.
- gsnedders 7y agodisplay: table isn't bad for layout (it's fine, and a perfectly reasonable approach, but please use table-layout: fixed); the table element is bad for layout, because it's an accessibility nightmare (and accessibility tools end up with weird heuristics to determine whether a table is there for tabular data or layout).