Sizing

Box Sizing

Style syntax for setting how the total width and height of an element is calculated.

🚧This page is still under construction and some content may not be complete.

Overview [sr-only]

ClassDeclarations
box-sizing:value / box:valuebox-sizing: value
box:contentbox-sizing: content-box
box:borderbox-sizing: border-box

Conditionally apply

Apply styles in different states using selectors, media queries, etc.

<div class="box-sizing:1/1:hover box-sizing:1/1@sm box-sizing:1/1@dark box-sizing:1/1@print"></div>
PREVIOUS
Aspect Ratio

Style syntax for setting the ratio for the box.

NEXT
Height

Style syntax for setting an element’s height.

MIT License © Aoyue Design LLC.