Box Sizing

Utilities for controlling how the browser should calculate an element's total size.

Examples

Each example sets its width and height to 128px. .d-box-border includes padding and border within that size. .d-box-content adds them outside it. Because box-sizing is not inherited, .d-box-unset resets to content-box and has the same outer size as .d-box-content.

Classes

Class
Output
d-box-border box-sizing: border-box !important;
d-box-content box-sizing: content-box !important;
d-box-unset box-sizing: unset !important;

Box Sizing documentation last updated Thursday, October 15, 2026