Skip to content

EasyConceptHTML and CSS

Explain the CSS box model.

What a good answer covers

Each element is content plus padding, border and margin. With box-sizing: content-box, width excludes padding and border; border-box includes them, which is easier to reason about and commonly set globally.

More on HTML and CSS

Flashcards for this topic