9:54:07It might be time to rethink box-sizing: border-box
From the creator
π Start writing CSS with Confidence: http://cssdemystified.com/ π Links β Miriamβs article: https://www.oddbird.net/2025/09/04/box-model/ β Keep up to date with everything I'm up to https://www.kevinpowell.co/newsletter π¬ Come hang out with other devs in my Discord Community https://discord.gg/nTYCvrK β Are you a beginner? HTML & CSS for absolute beginners is for you: https://learn.kevinpowell.co π Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/) π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/ β Timestamps 00:00 - Introduction 00:21 - The problem with border-box on container/wrapper 02:26 - Using box-sizing: context-box to fix it 03:48 - We donβt declare sizes that often anymore 05:00 - Heights with context-box are often better too 07:20 - The times when border-box does make more sense 08:55 - Except maybe we donβt need it after all 10:20 - You probably donβt want to remove it for old projects 10:43 - CSS Demystified #css --- Help support my channel π¨βπ Get a course: https://www.kevinpowell.co/courses π Buy a shirt: https://cottonbureau.com/people/kevin-powell π Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join --- π§βπ» My editor: VS Code - https://code.visualstudio.com/ π My theme: One Dark Pro Var Night π€ My font: Cascadia Code --- I'm on some other places on the internet too! If
Published 2025-09-24 Β· Watch on YouTube β
Availability and playback restrictions are controlled by the original channel.





