Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since abril de 2021.
* Some parts of this feature may have varying levels of support.
La propiedad abreviada de CSS margin-inline es una propiedad abreviada que define los márgenes lógicos de inicio y final en línea de un elemento, que se asignan a márgenes físicos según el modo de escritura, la direccionalidad y la orientación del texto del elemento.
Esta propiedad es una abreviatura de las siguientes propiedades de CSS:
Esta propiedad corresponde a las propiedades margin-top y margin-bottom, o margin-right y margin-left, dependiendo de los valores definidos para writing-mode, direction y text-orientation.
La propiedad margin-inline se puede especificar usando uno o dos valores.
La propiedad margin-inline toma los mismos valores que la propiedad margin.
| as each of the properties of the shorthand: |
| same as margin |
| no |
| depends on layout model |
as each of the properties of the shorthand:
|
| a length |
| CSS Logical Properties and Values Module Level 1 # propdef-margin-inline |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 31 mar 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.