aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/border-right-width/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/css/border-right-width/index.html')
-rw-r--r--files/fr/web/css/border-right-width/index.html162
1 files changed, 162 insertions, 0 deletions
diff --git a/files/fr/web/css/border-right-width/index.html b/files/fr/web/css/border-right-width/index.html
new file mode 100644
index 0000000000..1461fcc36c
--- /dev/null
+++ b/files/fr/web/css/border-right-width/index.html
@@ -0,0 +1,162 @@
+---
+title: border-right-width
+slug: Web/CSS/border-right-width
+tags:
+ - CSS
+ - Propriété
+ - Reference
+translation_of: Web/CSS/border-right-width
+---
+<div>{{CSSRef}}</div>
+
+<p>La propriété <strong><code>border-right-width</code></strong> définit l'épaisseur de la bordure pour le côté droit d'une boîte.</p>
+
+<div>{{EmbedInteractiveExample("pages/css/border-right-width.html")}}</div>
+
+<p class="hidden">Le code source de cet exemple interactif est disponible dans un dépôt GitHub. Si vous souhaitez contribuez à ces exemples, n'hésitez pas à cloner <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> et à envoyer une <em>pull request</em> !</p>
+
+<h2 id="Syntaxe">Syntaxe</h2>
+
+<pre class="brush:css no-line-numbers">/* Valeurs avec un mot-clé */
+border-right-width: thin;
+border-right-width: medium;
+border-right-width: thick;
+
+/* Valeurs de longueurs */
+/* Type &lt;length&gt; */
+border-right-width: 10em;
+border-right-width: 3vmax;
+border-right-width: 6px;
+
+/* Valeurs globales */
+border-right-width: inherit;
+border-right-width: initial;
+border-right-width: unset;</pre>
+
+<h3 id="Valeurs">Valeurs</h3>
+
+<dl>
+ <dt><code>&lt;br-width&gt;</code></dt>
+ <dd>Une valeur de longueur ({{cssxref("&lt;length&gt;")}}) positive ou un mot-clé qui indique l'épaisseur de la bordure pour le côté droit de la boîte. Si la valeur est un mot-clé, ce doit être l'une des valeurs suivantes :
+ <table class="standard-table">
+ <tbody>
+ <tr>
+ <td><code>thin</code></td>
+ <td>
+ <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: thin; background-color: palegreen;"> </div>
+ </td>
+ <td>Une bordure fine.</td>
+ </tr>
+ <tr>
+ <td><code>medium</code></td>
+ <td>
+ <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: medium; background-color: palegreen;"> </div>
+ </td>
+ <td>Une bordure moyenne.</td>
+ </tr>
+ <tr>
+ <td><code>thick</code></td>
+ <td>
+ <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: thick; background-color: palegreen;"> </div>
+ </td>
+ <td>Une bordure épaisse.</td>
+ </tr>
+ </tbody>
+ </table>
+ La spécification ne précise pas de façon exacte l'épaisseur correspondant à chacun de ces mots-clés (c'est donc à chaque implémentation de choisir). La spécification requiert toutefois que l'inégalité suivante soit respectée <code>thin ≤ medium ≤ thick</code> et que ces valeurs soient constantes pour un même document.</dd>
+</dl>
+
+<h3 id="Syntaxe_formelle">Syntaxe formelle</h3>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Exemples">Exemples</h2>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">.element1{
+ border-right: thick solid red;
+}
+.element2{
+ border-right: medium solid orange;
+}
+.element3{
+ border-right: thin solid green;
+}
+</pre>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;p class="element1"&gt;
+ Une bordure épaisse rouge.
+&lt;/p&gt;
+
+&lt;p class="element2"&gt;
+ Une bordure moyenne orange.
+&lt;/p&gt;
+
+&lt;p class="element3"&gt;
+ Et une bordure fine verte.
+&lt;/p&gt;</pre>
+
+<h3 id="Résultat">Résultat</h3>
+
+<p>{{EmbedLiveSample("Exemples","200","300")}}</p>
+
+<h2 id="Spécifications">Spécifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Spécification</th>
+ <th scope="col">État</th>
+ <th scope="col">Commentaires</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('CSS3 Backgrounds', '#the-border-width', 'border-right-width')}}</td>
+ <td>{{Spec2('CSS3 Backgrounds')}}</td>
+ <td>Pas de modification significative.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS2.1', 'box.html#border-width-properties', 'border-right-width')}}</td>
+ <td>{{Spec2('CSS2.1')}}</td>
+ <td>Pas de modification significative.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS1', '#border-right-width', 'border-right-width')}}</td>
+ <td>{{Spec2('CSS1')}}</td>
+ <td>Définition initiale.</td>
+ </tr>
+ </tbody>
+</table>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+
+<div class="hidden">Ce tableau de compatibilité a été généré à partir de données structurées. Si vous souhaitez contribuer à ces données, n'hésitez pas à envoyer une <em>pull request</em> sur <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>.</div>
+
+<p>{{Compat("css.properties.border-right-width")}}</p>
+
+<h2 id="Voir_aussi">Voir aussi</h2>
+
+<ul>
+ <li>Les autres propriétés liées à la largeur de la bordure :
+ <ul>
+ <li>{{cssxref("border-left-width")}},</li>
+ <li>{{cssxref("border-top-width")}},</li>
+ <li>{{cssxref("border-bottom-width")}},</li>
+ <li>{{cssxref("border-width")}}</li>
+ </ul>
+ </li>
+ <li>Les autres propriétés CSS liées à la bordure du côté droit :
+ <ul>
+ <li>{{cssxref("border")}},</li>
+ <li>{{cssxref("border-right")}},</li>
+ <li>{{cssxref("border-right-style")}},</li>
+ <li>{{cssxref("border-right-color")}}.</li>
+ </ul>
+ </li>
+</ul>