News for hackers. Stuff that matters.
Re:Full-Bleed Layout Using CSS Grid by leksak on Monday October 05, 2020 @01:41PM (#24690034)
You could probably write an article that'd be very often read if you teach CSS from this perspective.
Re:Full-Bleed Layout Using CSS Grid by akersten on Monday October 05, 2020 @01:46PM (#24690090)
I'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.