--- title: border-inline-width slug: Web/CSS/border-inline-width translation_of: Web/CSS/border-inline-width --- <div>{{CSSRef}}{{SeeCompatTable}}</div> <p>La propiedad de <a href="/en-US/docs/Web/CSS" title="CSS">CSS</a> <strong><code>border-inline-width</code></strong> define al ancho del borde lógico en línea de un elemento, que se asigna al estilo de borde físico dependiendo del modo de escritura, la direccionalidad y la orientación del texto del elemento. Esto corresponde a las propiedades {{cssxref("border-top-width")}} y {{cssxref("border-bottom-width")}}, o {{cssxref("border-left-width")}}, y {{cssxref("border-right-width")}} dependiendo de los valores definidos por {{cssxref("writing-mode")}}, {{cssxref("direction")}}, y {{cssxref("text-orientation")}}.</p> <pre class="brush:css no-line-numbers">/* <'border-width'> values */ border-inline-width: 5px 10px; border-inline-width: 5px; border-inline-width: thick; </pre> <p>El ancho del borde en otra dimensión puede establecerse con {{cssxref("border-block-width")}}, que establece {{cssxref("border-block-start-width")}}, y {{cssxref("border-block-end-width")}}.</p> <p>{{cssinfo}}</p> <h2 id="Sintaxis">Sintaxis</h2> <h3 id="Valores">Valores</h3> <dl> <dt><code><'border-width'></code></dt> <dd>El ancho del borde. Mira {{ cssxref("border-width") }}.</dd> </dl> <h3 id="Sintaxis_formal">Sintaxis formal</h3> {{csssyntax}} <h2 id="Ejemplo">Ejemplo</h2> <h3 id="Contenido_HTML">Contenido HTML</h3> <pre class="brush: html"><div> <p class="exampleText">Example text</p> </div> </pre> <h3 id="Contenido_CSS">Contenido CSS</h3> <pre class="brush: css">div { background-color: yellow; width: 120px; height: 120px; } .exampleText { writing-mode: vertical-lr; border: 1px solid blue; border-inline-width: 5px 10px; }</pre> <p>{{EmbedLiveSample("Ejemplo", 140, 140)}}</p> <h2 id="Especificación">Especificación</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Especificación</th> <th scope="col">Estado</th> <th scope="col">Comentario</th> </tr> </thead> <tbody> <tr> <td>{{SpecName("CSS Logical Properties", "#propdef-border-block-width", "border-block-width")}}</td> <td>{{Spec2("CSS Logical Properties")}}</td> <td>Definición inicial.</td> </tr> </tbody> </table> <h2 id="Compatibilidad_en_navegadores">Compatibilidad en navegadores</h2> <p>{{Compat("css.properties.border-block-width")}}</p> <h2 id="Mira_también">Mira también</h2> <ul> <li>Esta propiedad se asigna a una de las propiedades del borde físico:{{cssxref("border-top-width")}}, {{cssxref("border-right-width")}}, {{cssxref("border-bottom-width")}}, y {{cssxref("border-left-width")}}</li> <li>{{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}}</li> </ul>