CSS margin-inline Property Reference

The CSS margin-inline property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

CSS margin-inline Property Reference

The CSS margin-inline property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

margin-inline overview

The CSS margin-inline property is a standard property in CSS Logical Properties and Values. 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

margin-inline formal syntax
FieldValue
Formal syntax<'margin-top'>{1,2}
Initial valuemargin-inline-start, margin-inline-end
Applies tosameAsMargin
InheritedNo
PercentagesdependsOnLayoutModel
Computed valuemargin-inline-start, margin-inline-end
Animation typelength
Mediavisual
Specification groupCSS Logical Properties and Values
StatusStandard

Practical examples

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

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

Description

The CSS margin-inline property is a standard property in CSS Logical Properties and Values. Review its formal syntax, computed behavior, and practical declarations.

References

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

Similar or alternative tools

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