3 ms·
You could probably write an article that'd be very often read if you teach CSS from this perspective.
by leksak 6y ago
You could probably write an article that'd be very often read if you teach CSS from this perspective.
- akersten 6y agoI've wanted to actually! It's become almost a meme that CSS is hard and a badge of honor to be ignorant of it, but it's not that bad. I will concede that there are some annoying design decisions (like margin collapsing) but overall, I think it's a well-designed and evolving solution that has stood the test of time. That we've been able to so easily add things like flexbox and Grid to it in response to the changing needs of the web is kind of a testament of how well CSS modelled the problem of layout. Learning box-model and cascading will let one solve 90% of common CSS problems people encounter just from first principles.