4 ms·
I think tables for layout are severely underrated...
by forgotmypw17 4y ago
I think tables for layout are severely underrated...
- asddubs 4y agotables have some annoying edge cases, like e.g. they interact poorly with responsive images
- Eupolemos 4y agoFair enough. Despite the headline, it really isn't the important part. The important thing is getting rid of the mso styling.
- gscott 4y agoTables are reliable. Css is insane. It is hard to track down where a style is coming from.
- creata 4y ago1. Can't you just use the style inspector in your browser? 2. Imo, Grid is a much easier to read alternative to most uses of tables.
- goto11 4y agoTables does not render reliably across platforms. This is because the algorithm for sizing columns and cells was never standardized. Back when tables were the only tool available for layout, professionals combined tables with 1x1 pixel transparent gifs which could be scaled to force cells to have a fixed size. I guess you could argue that tables combined with spacer-gifs are reliable. But solution exists which are just as reliable, much easier to use, and better for accessibility. > It is hard to track down where a style is coming from. This is an orthogonal concern. If you don't like CSS inheritance and cascade, you can just use style attributes directly on elements. I believe Tailwind uses a similar approach through class attributes.
- samastur 4y agoI beg to differ. Nothing more miserable than debugging email templates with tables nested to the x-th degree.
- ctippett 4y agoFun fact: Hacker News itself is structured predominantly with tables. Every comment/thread creates a new table nested within the context of its parent's table. It's tables all the way down.
- Xorakios 4y agoUntil you get to the turtles...
- Dalewyn 4y ago4 hours as of this comment and nobody has mentioned the real reason (accessibility) that tables were ditched for CSS? I'm getting fuck old... (I like table layouts, now git off mah lawn ya green youngins.)