aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/border-top-width/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/css/border-top-width/index.md')
-rw-r--r--files/fr/web/css/border-top-width/index.md134
1 files changed, 134 insertions, 0 deletions
diff --git a/files/fr/web/css/border-top-width/index.md b/files/fr/web/css/border-top-width/index.md
new file mode 100644
index 0000000000..e96b5ef89f
--- /dev/null
+++ b/files/fr/web/css/border-top-width/index.md
@@ -0,0 +1,134 @@
+---
+title: border-top-width
+slug: Web/CSS/border-top-width
+tags:
+ - CSS
+ - Propriété
+ - Reference
+translation_of: Web/CSS/border-top-width
+---
+<div>{{CSSRef}}</div>
+
+<p>La propriété <strong><code>border-top-width</code></strong> définit l'épaisseur de la bordure pour le côté haut d'une boîte.</p>
+
+<div>{{EmbedInteractiveExample("pages/css/border-top-width.html")}}</div>
+
+<h2 id="Syntaxe">Syntaxe</h2>
+
+<pre class="brush:css no-line-numbers">/* Une valeur de longueur */
+/* Type &lt;length&gt; */
+border-top-width: 10em;
+border-top-width: 3vmax;
+border-top-width: 6px;
+
+/* Valeurs avec un mot-clé */
+border-top-width: thin;
+border-top-width: medium;
+border-top-width: thick;
+
+/* Valeurs globales */
+border-top-width: inherit;
+border-top-width: initial;
+border-top-width: unset;
+</pre>
+
+<h3 id="Valeurs">Valeurs</h3>
+
+<dl>
+ <dt><code>&lt;line-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 haut de la boîte. Si la valeur est un mot-clé, ce doit être l'une des valeurs suivantes :
+ <ul>
+ <li><code>thin</code> (fin)</li>
+ <li><code>medium</code> (intermédiaire)</li>
+ <li><code>thick</code> (épais)</li>
+ </ul>
+ 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>
+
+{{csssyntax}}
+
+<h2 id="Exemples">Exemples</h2>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">.element1{
+ border-top: thick solid red;
+}
+.element2{
+ border-top: medium solid orange;
+}
+.element3{
+ border-top: 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-top-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-top-width')}}</td>
+ <td>{{Spec2('CSS2.1')}}</td>
+ <td>Définition initiale.</td>
+ </tr>
+ </tbody>
+</table>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+
+<p>{{Compat("css.properties.border-top-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-right-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é haut :
+ <ul>
+ <li>{{cssxref("border")}},</li>
+ <li>{{cssxref("border-top")}},</li>
+ <li>{{cssxref("border-top-style")}},</li>
+ <li>{{cssxref("border-top-color")}}.</li>
+ </ul>
+ </li>
+</ul>