@KevinPowell
  @KevinPowell
Kevin Powell | "Smart" design patterns with container queries @KevinPowell | Uploaded June 2024 | Updated October 2024, 1 hour ago.
Container queries are more than just a media query that looks at the parent, it also is aware of the font-size of the parent, which opens up some interesting possibilities that media queries simply don’t do.

πŸ”— Links
βœ… I’ve got courses! kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=smartcontainerqueries
βœ… My video on the basics of container queries: youtu.be/2rlWBZ17Wes
βœ… CSS Nesting: youtu.be/YnWPeA6l5UE
βœ… The code from this video: codepen.io/kevinpowell/pen/MWdEYoE/cc72a123f738cee9948b56b63cba1ee7

⌚ Timestamps
00:00 - Introduction
00:12 - The classic example of container queries: the card
00:45 - Container queries can do more!
01:33 - The basics of container queries
03:20 - Units matter more with container queries
06:28 - Because units matter, we can make β€œsmart” layouts
14:30 - Little bonus with :has()

#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!
Smart design patterns with container queriesThe border-radius feature most people don’t know aboutIs Tailwind Taking Over CSS? (and some other insights)How to get started with VS CodeA background-image trick most people dont know aboutIs this a good idea?Use this instead of :focus in your cssUnder-used CSS features 1: overscroll-behavior: containHow I use AI to boost productivity while codingPlease, don’t use viewport units for font sizesCSS border effects without using borders5 Responsive Layouts in 60 seconds

"Smart" design patterns with container queries @KevinPowell

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER