Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

CSS Box Model Tutorial for Beginners

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial explains the layers of the CSS box model and how to style them with margin, padding, border, outline, and box-sizing properties. It concludes by creating a circle from a square using border-radius.

Syllabus

Intro
Welcome
Setup
Exploring the CSS Box Model
Default Browser Styles
CSS Reset
box-sizing
Styling elements with the box model
Margin properties and shorthand
Padding properties and shorthand
Border properties and shorthand
Outline and outline-offset
Turn a box into a circle

Taught by

Dave Gray

Reviews

Start your review of CSS Box Model Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.