3 ms·
> I used to think CSS was complex and everything was a hack I do web development only occasionally, so I'm not familiar with current best practices and rely on
by roelschroeven 6y ago
> I used to think CSS was complex and everything was a hack
I do web development only occasionally, so I'm not familiar with current best practices and rely on trying to mine the docs for what I'm trying to do and googling for it. 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. Suddenly I'm able to use the layout I want without any real problems. CSS is now usable for both styling and layout.
- 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.