Syntax

shape-outside

Setting a shape around which adjacent inline content should wrap.

Overview

ClassDeclarations
shape-outside:`value`shape-outside: `value`;
shape-noneshape-outside: none;
shape-marginshape-outside: margin-box;
shape-contentshape-outside: content-box;
shape-bordershape-outside: border-box;
shape-paddingshape-outside: padding-box;
shape:inset(`…`)shape-outside: inset(`…`);
shape:circle(`…`)shape-outside: circle(`…`);
shape:ellipse(`…`)shape-outside: ellipse(`…`);
shape:polygon(`…`)shape-outside: polygon(`…`);
shape:url(`…`)shape-outside: url(`…`);
shape:linear-gradient(`…`)shape-outside: linear-gradient(`…`);

Apply conditionally

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

<div class="shape-outside:inset(0|20px):hover shape-outside:inset(0|20px)@sm shape-outside:inset(0|20px)@dark shape-outside:inset(0|20px)@print">…</div>

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy