@KevinPowell
  @KevinPowell
Kevin Powell | Use this instead of media queries or container queries @KevinPowell | Uploaded February 2024 | Updated October 2024, 2 hours ago.
Media queries are a bit limited in how they work, and while container queries go a really long way in solving a lot of those limitations, there are intrinsic patterns that we can follow that allow us to do things that neither one of them can do.

The setup is a bit strange and can look complex, but, in my opinion, it's also 100% worth it!

πŸ”— Links
βœ… Why complex CSS is okay: youtu.be/OtqZKLdDNXY
βœ… Finished version, flexbox example: codepen.io/kevinpowell/pen/MWxEjMx
βœ… Finished version, grid example: codepen.io/kevinpowell/pen/abMLmeO

⌚ Timestamps
00:00 - Introduction
01:00 - What we're going to be creating
01:56 - New merch!
02:22 - Changing flexbox layout based on the width of one of its children
09:30 - The grid solution

#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!
Use this instead of media queries or container queriesKeeping up with CSS: The features released in 2023A simple CSS solution to select ranges of contentDynamic horizontal scrolling based on the amount of contentNo, Flexbox isnt good enoughCreate an animated, circular progress barUnder-used CSS features 3: matrix-3d()The big gotcha with native CSS nestingFlex: 1 probably doesnt work the way you think it doesA simple way to make a masonry layoutAnimate nav on scroll - CSS-only & easy to customizeA simple update for better form UX

Use this instead of media queries or container queries @KevinPowell

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER