CSS · Properties — CSS Shapes

shape-margin

The CSS shape-margin property. Initial value: 0. Not inherited.

Syntax
shape-margin: <length-percentage>

Example

Try it

Notes

Media: visual. Applies to: floats. Computed value: asSpecifiedRelativeToAbsoluteLengths.

More in this group

shape-image-threshold shape-outside

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course