---
title: border-left-width
slug: Web/CSS/border-left-width
tags:
  - CSS
  - Propriété
  - Reference
translation_of: Web/CSS/border-left-width
---
<div>{{CSSRef}}</div>

<p>La propriété <strong><code>border-left-width</code></strong> définit l'épaisseur de la bordure pour le côté gauche d'un élément.</p>

<div>{{EmbedInteractiveExample("pages/css/border-left-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">/* Une valeur de longueur */
/* Type &lt;length&gt;          */
border-left-width: 10em;
border-left-width: 3vmax;
border-left-width: 6px;

/* Valeurs avec un mot-clé */
border-left-width: thin;
border-left-width: medium;
border-left-width: thick;

/* Valeurs globales */
border-left-width: inherit;
border-left-width: initial;
border-left-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é gauche 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-left-style: solid; border-left-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-left-style: solid; border-left-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-left-style: solid; border-left-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<code>.</code></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-left-width: thick;
  border-left-style: solid;
  border-left-color: red;
}
.element2{
  border-left-width: medium;
  border-left-style: solid;
  border-left-color: orange;
}
.element3{
  border-left-width: thin;
  border-left-style: solid;
  border-left-color: 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-left-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-left-width')}}</td>
   <td>{{Spec2('CSS2.1')}}</td>
   <td>Pas de modification significative.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS1', '#border-left-width', 'border-left-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>

<p>{{Compat("css.properties.border-left-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-right-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é gauche :
  <ul>
   <li>{{cssxref("border")}},</li>
   <li>{{cssxref("border-left")}},</li>
   <li>{{cssxref("border-left-style")}},</li>
   <li>{{cssxref("border-left-color")}}.</li>
  </ul>
 </li>
</ul>