CSS shape-margin Property Reference

The CSS shape-margin property is a standard property in CSS Shapes. Review its formal syntax, computed behavior, and practical declarations.

CSS shape-margin Property Reference

The CSS shape-margin property is a standard property in CSS Shapes. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

shape-margin overview

The CSS shape-margin property is a standard property in CSS Shapes. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

shape-margin formal syntax
FieldValue
Formal syntax<length-percentage>
Initial value0
Applies tofloats
InheritedNo
PercentagesreferToWidthOfContainingBlock
Computed valueasSpecifiedRelativeToAbsoluteLengths
Animation typelpc
Mediavisual
Specification groupCSS Shapes
StatusStandard

Practical examples

These declarations demonstrate valid ways to set shape-margin. The initial and inherit global keywords remain available even when a property-specific value is preferable.

shape-margin live example
CSS .reset-example { shape-margin: initial; } .inherit-example { shape-margin: inherit; } @supports (shape-margin: initial) { .supported { shape-margin: initial; } }

Description

The CSS shape-margin property is a standard property in CSS Shapes. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: shape-margin
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies