Two tiles receive the same width, padding, and border before border-box makes the sizing easier to reason about.

Program

By default, width applies to the content box. Border-box includes padding and border inside the declared width.

box_sizing_modes.html
<style>
.tile { width: 220px; padding: 16px; border: 4px solid #64748b; }
.tile { margin-bottom: 12px; background: #f1f5f9; }
.border { box-sizing: border-box; }
.border { border-color: #16a34a; }
</style>

<div class="tile content">content-box</div>
<div class="tile border">border-box</div>
content-box In content-box sizing, width excludes padding and border.
border-box In border-box sizing, width includes padding and border.