Posts

Showing posts with the label Learnings

CSS Units: Stuff I wish Someone Had Told me

CSS Units: Stuff I Wish Someone Had Told Me CSS Units: Stuff I Wish Someone Had Told Me May 19, 2025 • Running on: caffeine overload & regret Damn it. I just wasted another weekend fixing a website because I screwed up the CSS units. AGAIN. Can I confess something? I've been building websites for over 10 years, and I *still* get confused about when to use px vs rem vs em. It's embarrassing. Like, I should know this stuff by now, right? So last month I built this site for a law firm. Everything looked perfect... on MY screen. Then the client calls me all angry: "Your website's broken!" Turns out he had his browser font cranked way up, and my beautiful layout was a total mess - buttons overlapping text, things running off the screen, a complete disaster. Yeah, I know. Totally preventable. So I'm writing this down partly to get it straight in my own head, and partly in case you're makin...

Debugging Your Layout: How to identify and Fix Common CSS Grid Issues

Debugging Your Layout: How to Identify and Fix Common CSS Grid Issues CSS Grid makes me wanna pull my hair out sometimes! Last Tuesday I was building this photo gallery that looked PERFECT in my Figma design. Then I coded it up and... what a mess! Nothing aligned, things were overlapping, and I almost threw my MacBook out the window. Seriously though, if you've ever rage-quit your code editor because your grid layout is acting possessed, I feel you. So grab a coffee (or something stronger) and let's talk about the CSS Grid problems that have personally given me migraines and how I eventually fixed them. Why Do Our Grids Break? The Honest Truth So here's what I've figured out after staying up way too late debugging layouts for clients who needed stuff "yesterday": CSS Grid doesn't think like we do - My brain wants to see boxes, but Grid is thinking about lines and tracks Browsers are... well, browsers - Firefox d...