HTML & CSS for Beginners Part 12: The CSS Box Model - Margin, Borders & Padding explained

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI19 min

About this video

A beginner lesson in the CSS box model, explaining how margin, padding and borders affect the space and size of elements on a web page. It is part of a series for people building their first website with HTML and CSS.

What you’ll learn

  • Explain how margin, padding and borders make up the CSS box model
  • Adjust spacing and borders on HTML elements with CSS
  • Predict how box sizing changes the layout of a page