--- title: border-block-start-width slug: Web/CSS/border-block-start-width tags: - CSS - Experimental - Propriété - Propriété logique - Reference translation_of: Web/CSS/border-block-start-width --- <div>{{CSSRef}}{{SeeCompatTable}}</div> <p>La propriété <strong><code>border-block-start-width</code></strong> définit la largeur de la bordure pour le côté de bloc du début « logique » de l'élément. Cette propriété logique correspond à l'une des propriétés physiques équivalentes en fonction du mode d'écriture, de la directionnalité et de l'orientation du texte. Autrement dit, elle correspondra à {{cssxref("border-top-width")}}, {{cssxref("border-right-width")}}, {{cssxref("border-bottom-width")}} ou a {{cssxref("border-left-width")}} selon les valeurs des propriétés pour {{cssxref("writing-mode")}}, {{cssxref("direction")}} et {{cssxref("text-orientation")}}.</p> <div>{{EmbedInteractiveExample("pages/css/border-block-start-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> <p>Cette propriété logique est à rapprocher des autres propriétés logiques {{cssxref("border-inline-start-width")}}, {{cssxref("border-block-end-width")}} et {{cssxref("border-inline-end-width")}} qui permettent de définir la largeur de la bordure pour les différents côtés de l'élément.</p> <h2 id="Syntaxe">Syntaxe</h2> <pre class="brush:css no-line-numbers">/* Valeur de longueur */ /* Type <length> */ border-block-start-width: 5px; border-block-start-width: thick; </pre> <h3 id="Valeurs">Valeurs</h3> <dl> <dt><code><'border-width'></code></dt> <dd>Voir {{cssxref("border-width")}}</dd> </dl> <h3 id="Syntaxe_formelle">Syntaxe formelle</h3> {{csssyntax}} <h2 id="Exemples">Exemples</h2> <h3 id="CSS">CSS</h3> <pre class="brush: css">div { background-color: yellow; width: 120px; height: 120px; } .exemple { writing-mode: vertical-lr; border: 1px solid blue; border-block-start-width: 5px; }</pre> <h3 id="HTML">HTML</h3> <pre class="brush: html"><div> <p class="exemple">Texte d'exemple</p> </div> </pre> <h3 id="Résultat">Résultat</h3> <p>{{EmbedLiveSample("Exemples", 140, 140)}}</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("CSS Logical Properties", "#propdef-border-block-start-width", "border-block-start-width")}}</td> <td>{{Spec2("CSS Logical Properties")}}</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-block-start-width")}}</p> <h2 id="Voir_aussi">Voir aussi</h2> <ul> <li>Les propriétés physiques correspondantes : <ul> <li>{{cssxref("border-top-width")}}</li> <li>{{cssxref("border-right-width")}}</li> <li>{{cssxref("border-bottom-width")}}</li> <li>{{cssxref("border-left-width")}}</li> </ul> </li> <li>{{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}}</li> </ul>