Every element renders as a rectangle built from four layers, from the inside out:
Two elements can look identical but behave completely differently once you resize the page, purely because of how their width/height interact with padding and border — which is exactly what box-sizing controls.
.card {
width: 300px;
padding: 20px;
border: 2px solid #ccc;
margin: 16px;
}
Nothing about this rule says how wide .card actually renders on screen — that depends entirely on box-sizing, covered next.