3 ms·
> I've always very strongly had the impression that while CSS was good at styling, it was hopeless at layout. > That changed with the introduction of flex and
by Izkata 6y ago
> I've always very strongly had the impression that while CSS was good at styling, it was hopeless at layout.
> That changed with the introduction of flex and grid.
Half true. Flex and grid are a significant improvement, but "hopeless" was just about always inaccurate. The vast majority of issues people had with layouts pre-flex were because they didn't understand the box model and how block/inline/inline-block/float interacted with each other.
...Unfortunately, not understanding the box model is still a problem, but flex/grid can get people further without needing to understand it.