CSS Box Model

VirtualAddiction on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design19 min

About this video

Explains the CSS box model, covering how content, padding, border and margin affect element size and layout. Shows how to inspect rendered element boxes with browser developer tools and covers margin collapse and the box-sizing property.

What you’ll learn

  • Describe the parts of the CSS box model: content, padding, border and margin
  • Inspect rendered element boxes with browser developer tools
  • Explain margin collapse and control element sizing with box-sizing