From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/css/margin-inline-end/index.html | 114 ++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 files/fr/web/css/margin-inline-end/index.html (limited to 'files/fr/web/css/margin-inline-end') diff --git a/files/fr/web/css/margin-inline-end/index.html b/files/fr/web/css/margin-inline-end/index.html new file mode 100644 index 0000000000..a2f3b7c213 --- /dev/null +++ b/files/fr/web/css/margin-inline-end/index.html @@ -0,0 +1,114 @@ +--- +title: margin-inline-end +slug: Web/CSS/margin-inline-end +tags: + - CSS + - Experimental + - Propriété + - Reference +translation_of: Web/CSS/margin-inline-end +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +

La propriété margin-inline-end définit la marge logique appliquée à la fin des éléments en ligne, selon le mode d'écriture, la directionalité et l'orientation du texte. Selon les valeurs utilisées pour {{cssxref("writing-mode")}}, {{cssxref("direction")}}, and {{cssxref("text-orientation")}}, elle peut correspondre à {{cssxref("margin-top")}}, {{cssxref("margin-right")}}, {{cssxref("margin-bottom")}} ou {{cssxref("margin-left")}}.

+ +
{{EmbedInteractiveExample("pages/css/margin-inline-end.html")}}
+ + + +

Cette propriété est à rapprocher de {{cssxref("margin-block-start")}}, {{cssxref("margin-block-end")}} et de {{cssxref("margin-inline-start")}} qui définissent les autres marges appliquées à l'élément.

+ +

Syntaxe

+ +
/* Valeurs de longueur */
+/* Type <length>       */
+margin-inline-end: 10px;      /* Une longueur absolue */
+margin-inline-end: 1em;       /* Une longueur relative à la taille du texte */
+margin-inline-end: 5%;        /* Une largeur relative à la
+                                   largeur du bloc englobant */
+
+/* Valeurs avec un mot-clé */
+margin-inline-end: auto;
+
+/* Valeurs globales */
+margin-inline-end: inherit;
+
+ +

Valeurs

+ +

La propriété margin-inline-end peut prendre les mêmes valeurs que la propriété {{cssxref("margin-left")}}.

+ +

Syntaxe formelle

+ +
{{csssyntax}}
+ +

Exemples

+ +

CSS

+ +
div {
+  background-color: yellow;
+  width: 120px;
+  height: 120px;
+}
+
+.exemple {
+  writing-mode: vertical-lr;
+  margin-inline-end: 20px;
+  background-color: #c8c800;
+}
+ +

HTML

+ +
<div>
+  <p class="exemple">Texte d'exemple</p>
+</div>
+
+ +

Résultat

+ +

{{EmbedLiveSample("Exemples", 140, 140)}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName("CSS Logical Properties", "#propdef-margin-inline-end", "margin-inline-end")}}{{Spec2("CSS Logical Properties")}}Définition initiale.
+ +

{{cssinfo}}

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("css.properties.margin-inline-end")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf