3 ms·
While that made good points back when it was written (2009), nowadays we have flexbox - which solves the problems that essay describes with such precision it ma
by EvilTerran 10y ago
While that made good points back when it was written (2009), nowadays we have flexbox - which solves the problems that essay describes with such precision it makes you wonder if the spec authors were responding to it in particular. I mean, if you take, say, MDN's tutorial page on flexbox, it demonstrates the exact same layout that used to be such a problem:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes#Holy_Grail_Layout_example https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexibl...
So perhaps the story is, more precisely, "when it comes to layout, abusing floats is fundamentally flawed" - yes, in the past, tables may have been the best alternative in a lot of cases; but now we've got it, flexbox is superior to floats and to tables. It really is a joy to work with once you get your head round it IMO.