Skip to main content

Box Sizing

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

CSS Property:box-sizing
Classes:2

Box Sizing Classes

ClassCSS
box-borderbox-sizing: border-box;
box-contentbox-sizing: content-box;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[box-sizing:value]

Responsive Variants

Apply box sizing utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:box-border
768px+md:md:box-border
1024px+lg:lg:box-border
1280px+xl:xl:box-border
1536px+2xl:2xl:box-border