diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-09-17 20:59:20 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-12 07:57:33 +0200 |
| commit | 258ba7b4be62d8640477a3bd3146d08b00cb70ec (patch) | |
| tree | a8476eee4c369ff47bdfe08353774414f2281ba3 /files/fr/web/css/max-inline-size | |
| parent | 149319bb8c7b1394a443f0877c3460cd362aa815 (diff) | |
| download | translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.gz translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.bz2 translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.zip | |
convert content to md
Diffstat (limited to 'files/fr/web/css/max-inline-size')
| -rw-r--r-- | files/fr/web/css/max-inline-size/index.md | 79 |
1 files changed, 34 insertions, 45 deletions
diff --git a/files/fr/web/css/max-inline-size/index.md b/files/fr/web/css/max-inline-size/index.md index 9d99076ece..47c4a75ea1 100644 --- a/files/fr/web/css/max-inline-size/index.md +++ b/files/fr/web/css/max-inline-size/index.md @@ -8,21 +8,22 @@ tags: - Reference translation_of: Web/CSS/max-inline-size --- -<div>{{CSSRef}}{{SeeCompatTable}}</div> +{{CSSRef}}{{SeeCompatTable}} -<p>La propriété <a href="/fr/docs/Web/CSS">CSS</a> <strong><code>max-inline-size</code></strong> définit la taille maximale horizontale ou verticale d'un élément en ligne (<em>inline</em>) 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, <code>max-inline-size</code> 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.</p> +La propriété [CSS](/fr/docs/Web/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. -<div>{{EmbedInteractiveExample("pages/css/max-inline-size.html")}}</div> +{{EmbedInteractiveExample("pages/css/max-inline-size.html")}} -<h2 id="Syntaxe">Syntaxe</h2> +## Syntaxe -<pre class="brush:css no-line-numbers">/* Valeurs de longueur */ -/* Type <length> */ +```css +/* Valeurs de longueur */ +/* Type <length> */ max-inline-size: 300px; max-inline-size: 25em; /* Valeurs proportionnelles */ -/* Type <percentage> */ +/* Type <percentage> */ max-inline-size: 75%; /* Valeurs avec un mot-clé */ @@ -36,64 +37,52 @@ max-inline-size: fill-available; max-inline-size: inherit; max-inline-size: initial; max-inline-size: unset; -</pre> +``` -<h3 id="Valeurs">Valeurs</h3> +### Valeurs -<p>La propriété <code>max-inline-size</code> peut prendre les mêmes valeurs que les propriétés {{cssxref("max-width")}} ou {{cssxref("max-height")}}.</p> +La propriété `max-inline-size` peut prendre les mêmes valeurs que les propriétés {{cssxref("max-width")}} ou {{cssxref("max-height")}}. -<h3 id="Syntaxe_formelle">Syntaxe formelle</h3> +### Syntaxe formelle {{csssyntax}} -<h2 id="Exemple">Exemple</h2> +## Exemple -<h3 id="CSS">CSS</h3> +### CSS -<pre class="brush: css">.exemple { +```css +.exemple { writing-mode: vertical-rl; background-color: yellow; block-size: 100%; max-inline-size: 200px; -}</pre> +} +``` -<h3 id="HTML">HTML</h3> +### HTML -<pre class="brush: html"><p class="exemple">Texte d'exemple</p> -</pre> +```html +<p class="exemple">Texte d'exemple</p> +``` -<h3 id="Résultat">Résultat</h3> +### Résultat -<p>{{EmbedLiveSample("Exemple")}}</p> +{{EmbedLiveSample("Exemple")}} -<h2 id="Spécifications">Spécifications</h2> +## Spécifications -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Spécifications</th> - <th scope="col">État</th> - <th scope="col">Commentaires</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("CSS Logical Properties", "#propdef-max-inline-size", "max-inline-size")}}</td> - <td>{{Spec2("CSS Logical Properties")}}</td> - <td>Définition initiale</td> - </tr> - </tbody> -</table> +| Spécifications | État | Commentaires | +| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------------- | +| {{SpecName("CSS Logical Properties", "#propdef-max-inline-size", "max-inline-size")}} | {{Spec2("CSS Logical Properties")}} | Définition initiale | -<p>{{cssinfo}}</p> +{{cssinfo}} -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> +## Compatibilité des navigateurs -<p>{{Compat("css.properties.max-inline-size")}}</p> +{{Compat("css.properties.max-inline-size")}} -<h2 id="Voir_aussi">Voir aussi</h2> +## Voir aussi -<ul> - <li>Les propriétés physiques correspondantes : {{cssxref("max-width")}} et {{cssxref("max-height")}}</li> - <li>{{cssxref("writing-mode")}}</li> -</ul> +- Les propriétés physiques correspondantes : {{cssxref("max-width")}} et {{cssxref("max-height")}} +- {{cssxref("writing-mode")}} |
