margin-inline-end
A logical property that sets the margin at the 'end' of the inline axis (usually the 'right' in LTR or 'left' in RTL). It's the logical replacement for 'margin-right'.
It is documented as part of the CSS Logical Properties and Values specification.
Syntax
/* Usage Example */
.icon {
/* Adds space after the icon (right in English, left in Arabic) */
margin-inline-end: 10px;
}
/* Syntax */
margin-inline-end: top;
/* Global values */
margin-inline-end: inherit;
margin-inline-end: initial;
margin-inline-end: revert;
margin-inline-end: revert-layer;
margin-inline-end: unset;
margin-inline-end Browser support
Widely available
Since
2021 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.
69+
41+
12.1+
79+