margin-inline
A logical shorthand for 'margin-inline-start' and 'margin-inline-end'. It sets the horizontal spacing (left and right) in one line.
Quick example
.button {
/* Adds 1rem space to both left and right logically */
margin-inline: 1rem;
}Quick facts
Initial value
See individual propertiesInherited
No
Applies to
same as margin
Animation type
length
Values
margin-topmargin-inline Browser Support
Widely availableSince 202195% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.
Safe to use without fallbacks.
87+
66+
14.1+
87+