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/max-inline-size/index.html | 103 ++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 files/fr/web/css/max-inline-size/index.html (limited to 'files/fr/web/css/max-inline-size/index.html') diff --git a/files/fr/web/css/max-inline-size/index.html b/files/fr/web/css/max-inline-size/index.html new file mode 100644 index 0000000000..c8fac84ce1 --- /dev/null +++ b/files/fr/web/css/max-inline-size/index.html @@ -0,0 +1,103 @@ +--- +title: max-inline-size +slug: Web/CSS/max-inline-size +tags: + - CSS + - Experimental + - Propriété + - Reference +translation_of: Web/CSS/max-inline-size +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +

La propriété CSS max-inline-size définit la taille maximale horizontale ou verticale d'un élément en ligne (inline) selon le mode d'écriture utilisé. Elle correspond à la propriété {{cssxref("max-width")}} ou {{cssxref("max-height")}} selon la valeur utilisée pour {{cssxref("writing-mode")}}. Si le mode d'écriture est orienté verticalement, max-inline-size fait référence à la hauteur maximale de l'élément, sinon elle fait référence à la largeur maximale de l'élément. La propriété {{cssxref("max-block-size")}} peut être utilisée pour les blocs.

+ +
{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}
+ + + +

Syntaxe

+ +
/* Valeurs de longueur */
+/* Type <length>       */
+max-inline-size: 300px;
+max-inline-size: 25em;
+
+/* Valeurs proportionnelles */
+/* Type <percentage> */
+max-inline-size: 75%;
+
+/* Valeurs avec un mot-clé */
+max-inline-size: none;
+max-inline-size: max-content;
+max-inline-size: min-content;
+max-inline-size: fit-content;
+max-inline-size: fill-available;
+
+/* Valeurs globales */
+max-inline-size: inherit;
+max-inline-size: initial;
+max-inline-size: unset;
+
+ +

Valeurs

+ +

La propriété max-inline-size peut prendre les mêmes valeurs que les propriétés {{cssxref("max-width")}} ou {{cssxref("max-height")}}.

+ +

Syntaxe formelle

+ +
{{csssyntax}}
+ +

Exemple

+ +

CSS

+ +
.exemple {
+  writing-mode: vertical-rl;
+  background-color: yellow;
+  block-size: 100%;
+  max-inline-size: 200px;
+}
+ +

HTML

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

Résultat

+ +

{{EmbedLiveSample("Exemple")}}

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationsÉtatCommentaires
{{SpecName("CSS Logical Properties", "#propdef-max-inline-size", "max-inline-size")}}{{Spec2("CSS Logical Properties")}}Définition initiale
+ +

{{cssinfo}}

+ +

Compatibilité des navigateurs

+ + + +

{{Compat("css.properties.max-inline-size")}}

+ +

Voir aussi

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