shape-margin

The shape-margin CSS property adds a margin to shape-outside.

/* <length> values */
shape-margin: 10px;
shape-margin: 20mm;
/* <percentage> values */
shape-margin: 60%;
/* Global values */
shape-margin: inherit;
shape-margin: initial;
shape-margin: unset;

Initial value0
Applies tofloats
Inheritedno
Percentagesrefer to the width of the containing block
Mediavisual
Computed valueas specified, but with relative lengths converted into absolute lengths
Animation typea length, percentage or calc();
Canonical orderthe unique non-ambiguous order defined by the formal grammar

Syntax

Values

<length-percentage>
Sets the margin of the shape to a <length> value or to a <percentage> of the width of the element's containing block.

Formal syntax

<length-percentage>

where
<length-percentage> = <length> | <percentage>

Specifications

Specification Status Comment
CSS Shapes Module Level 1
The definition of 'shape-margin' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) No support No support No support 7.0 -webkit
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) No support No support No support ?

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, Sebastianz, fscholz, rebeccahauck
 Last updated by: chrisdavidmills,