T
29

Found out I can build a full UI grid with just 5 lines of CSS now

Was messing around with CSS Grid last night and stumbled on this subgrid thing I'd never tried before. I had this complex card layout with nested elements that normally takes like 30 lines of code. After reading a post on CSS-Tricks from June, I rewrote the whole thing using gap and grid-template-rows on a parent container. It lined up perfectly on the first try with like 5 lines of CSS total. Has anyone else found random articles that completely change how you code something simple?
2 comments

Log in to join the discussion

Log In
2 Comments
eric359
eric35910d ago
My buddy rebuilt his whole portfolio site after finding a random CodePen thread at 2am.
2
the_terry
the_terry10d ago
Two of my friends once redesigned their whole site off a 3am CSS trick tweet.
5