@KevinPowell
  @KevinPowell
Kevin Powell | Unfamiliar CSS patterns that improve on the classics @KevinPowell | Uploaded January 2024 | Updated October 2024, 7 hours ago.
Common patterns that get the job done are handy because if we come across it in a codebase, we know exactly what’s going on… but sometimes, familiarity holds us back. I get pushback when I use new methods to solve things we already have solutions to, but I don’t do it just for the sake of it, I do it because I feel like the new ways are better.

Plus, some old patterns, like declaring `flex: 1` on all the flex items to have even columns isn’t exactly common sense, it’s just something we’ve grown familiar with because it works, so there’s no reason other somewhat strange (at first glance, anyway) solutions can’t become common patterns over time.

🔗 Links
✅ My video explaining the * 999 flex switch:
✅ Every Layout: https://every-layout.dev/

⌚ Timestamps
00:00 - Introduction
00:50 - using width: min() for a wrapper
04:30 - did you never start using arrow functions in JS?
05:10 - Using custom properties to make things more readable
07:48 - main with sidebar
11:00 - main with sidebar where the breakpoint is based on one of the children’s size
14:45 - The flow class ( * + * )
21:00 - why is flex: 1 for equal columns not considered bad practice?

#css

--

Come hang out with other dev's in my Discord Community
💬 discord.gg/nTYCvrK

Keep up to date with everything I'm up to
kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
📺 twitch.tv/kevinpowellcss

---

Help support my channel
👨‍🎓 Get a course: kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome
💖 Support me on Patreon: patreon.com/kevinpowell

---

My editor: VS Code - code.visualstudio.com

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Twitter: twitter.com/KevinJPowell
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Unfamiliar CSS patterns that improve on the classicsAvoid these 5 beginner CSS mistakesHow flexbox and grid are like owning different types of shoesNaming things just got easier thanks to @scopeIs CSS getting harder to learn?True parallax with CSS-only is now possibleThe man behind some of the craziest CSS Ive ever seenOne-liner to fix shadows, borders, and gradients that break multiple linesHow to make a nice site with less CSSCSS unit Tier ListResponsive Layouts WorkshopIts time for a change...

Unfamiliar CSS patterns that improve on the classics @KevinPowell

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER