Picking a breakpoint for media queries can be a little tricky. Generic breakpoints sometimes don’t seem to do the job, and using specific device sizes is problematic because there are too many of them. That’s why I like to go with more of a content-first approach, to a certain extent anyway. We don’t want to get too precise either, or we end up with way too many of them! Container queries also change the game a little when it comes to breakpoints, opening up some new options and possibilities. 🔗 Links ✅ The ideal viewport doesn’t exist: ✅ Piccalilli article that uses the container query viewport trick: ✅ Code from first example: ✅ Code from second example: ✅ Looking to improve your CSS skills? ⌚ Timestamps 00:00 - Introduction 00:50 - Working with ranges 05:00 - You don’t need all those breakpoints 05:50 - Content-first breakpoint approach 07:00 - Don’t micromanage your breakpoints 07:50 - Approaching this with a real layout 13:50 - When container queries make more sense 19:45 - Container queries based on the size of the columns you want 22:12 - Another example of container queries being useful #css ✉ Keep up to date with everything I'm up to 💬 Come hang out with other devs in my Discord Community ⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: 🎓 Start writing CSS with confidence with CSS Demystified: [ ]( ) 🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: --- Help support my channel 👨🎓 Get a course: 👕 Buy a shirt: 💖 Support me on Patreon: or through YT memberships: @KevinPowell/join --- 🧑💻 My editor: VS Code - 🌈 My theme: One Dark Pro Var Night 🔤 My font: Cascadia Code --- 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: Bluesky: Codepen: Github: --- And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!










