Syntax

box-sizing

Setting how the total width and height of an element is calculated.

Overview

ClassDeclarations
box-sizing:`value`box-sizing: `value`;
box-contentbox-sizing: content-box;
box-borderbox-sizing: border-box;

Apply conditionally

Apply styles based on different states using selectors and conditional queries.

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

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy