CSS Box Model Components
Multiple Choice Easy
Question
Which is NOT a component of the CSS box model?
Hint
The box model has four layers: content, padding, border, margin.
Explanation
The CSS box model consists of four areas: content, padding, border, and margin. Shadow is not part of the box model; it is a separate visual effect applied via the box-shadow property. Understanding the box model is essential for controlling element sizing and spacing.
Related Resources
Related Lessons
- CSS Box Model
Learn the CSS box model.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.