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!
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!