13
Three years ago I built a full site using only floats, felt like a hero until I saw what Grid could do last month.
I redid that same site with CSS Grid in 2 hours versus the 3 days it took me with floats. The column alignment on the product cards alone saved me 20 lines of media queries. Has anyone else gone back and rebuilt old projects just to see the time difference?
2 comments
Log in to join the discussion
Log In2 Comments
gavin_mason313d ago
@charles_henderson nailed it - the maintenance alone makes the switch worth it. Rebuilt an old blog layout last weekend and watching Grid handle the responsive stuff without me fighting floats was almost embarrassing. Feels like cheating honestly.
2
charles_henderson3d ago
Floats worked fine for a while but the maintenance was a nightmare. I rebuilt a portfolio site from three years back and cut the CSS by almost half. Grid handles the responsive breakpoints way cleaner too, no more clearing floats and guessing column widths. You can just define the template areas and let the browser figure it out. The time savings add up fast when you stop fighting the layout and let Grid do the heavy lifting.
1