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.
PreviousA useEffect fetching data shows stale results when the user changes a filter quickly. Why and how do you fix it?Next How does CSS specificity work?