6
I used to hand-write every media query, now I let the browser do the math
Back in 2018 I was manually typing breakpoints at 320, 480, 768, 1024 for every single project. One typo at 3am on a client site in Austin and the whole layout turned into a snake pit. Took me two days to find it. Now I just use clamp() with a few custom properties and let the viewport sort itself out. Sure, it feels less "controlled" but I haven't had a broken nav in 11 months. Anyone else ditch the fixed breakpoint list, or am I just getting lazy?
1 comments
Log in to join the discussion
Log In1 Comment
the_eric7d ago
Honestly, fixed breakpoints give me a safety net that fluid math just can't match when edge cases pop up.
5