2 ms·
Ironic, isn't it? Here we are, on a site that uses tables for layout, laughint about using tables for layout...
by DarkWiiPlayer 6y ago
Ironic, isn't it? Here we are, on a site that uses tables for layout, laughint about using tables for layout...
- pjc50 6y agoUnpopular opinion: there never was much wrong with the table layout, and subsequent standards efforts never really managed to properly support a lot of use-cases. You can still see people using display: table and display: table-cell for exactly this reason. Where's my vertically centered div? Where is my elastic newspaper column layout? How much Javascript exists because people couldn't figure out how to position things the way they wanted? And many websites have the div version of the "table nightmare", especially Facebook and Instagram. It's also popular to put a transparent div over images to prevent people casually saving them.
- deleted 6y ago[deleted]
- DarkWiiPlayer 6y agoCSS Grid and Flex Box solve all of the use-cases of tables; it's only a matter of browser support these days. For a page created 3 years ago, it might still make sense to be using tables because some users are on older browsers, but for any website created from now on, it gets harder and harder to justify still using tables.