box-sizing: border-box explained

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI5 min

About this video

Kevin Powell explains what the CSS box-sizing: border-box property does and why it is useful for sizing elements on the web. The video is aimed at people learning CSS layout.

What you’ll learn

  • Explain how box-sizing: border-box changes element width and height calculations
  • Apply border-box sizing to elements in a CSS layout
  • Decide when border-box sizing suits a page's layout