From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/css/border-right/index.html | 109 +++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 files/es/web/css/border-right/index.html (limited to 'files/es/web/css/border-right') diff --git a/files/es/web/css/border-right/index.html b/files/es/web/css/border-right/index.html new file mode 100644 index 0000000000..ef5e1b4a3e --- /dev/null +++ b/files/es/web/css/border-right/index.html @@ -0,0 +1,109 @@ +--- +title: border-right +slug: Web/CSS/border-right +tags: + - Bordes CSS + - Propiedad CSS + - Referencia +translation_of: Web/CSS/border-right +--- +
{{CSSRef}}
+ +

La propiedad CSS border-right es un a propiedad rápida para dar valores al {{cssxref("border-right-width")}}, {{cssxref("border-right-style")}} y {{cssxref("border-right-color")}}. Estas propiedades establecen un borde derecho del elemento.

+ +
{{EmbedInteractiveExample("pages/css/border-right.html")}}
+ + + +

Como con todas las propiedades rápidas, border-right siempre establece los valores de todas las propiedades que puede establecer, incluso si no están especificadas. Establece los no especificados a sus valores por defecto. Lo que significa que ...

+ +
border-right-style: dotted;
+border-right: thick green;
+
+ +

... es en realidad lo mismo que ...

+ +
border-right-style: dotted;
+border-right: none thick green;
+
+ +

... y el valor de {{cssxref("border-right-style")}} dado previamente a border-right es ignorado. Puesto que el valor por defecto de {{cssxref("border-right-style")}} es none, si no se especifica la parte border-style el resultado es no establecer un borde.

+ +

Sintaxis

+ +
border-right: 1px;
+border-right: 2px dotted;
+border-right: medium dashed green;
+
+ +

Los tres valores de la propiedad rápida pueden ser especificados en cualquier orden, incluso omitiendo uno o dos de ellos.

+ +

Valores

+ +
+
<br-width>
+
Ver {{cssxref("border-right-width")}}.
+
<br-style>
+
Ver {{cssxref("border-right-style")}}.
+
{{cssxref("<color>")}}
+
Ver {{cssxref("border-right-color")}}.
+
+ +

Formal syntax

+ +
{{csssyntax}}
+ +

Ejemplo

+ +
<div>
+  Esta caja tiene un borde en el lado derecho.
+</div>
+ +
div {
+  border-right: 4px dashed blue;
+  background-color: gold;
+  height: 100px;
+  width: 100px;
+  font-weight: bold;
+  text-align: center;
+}
+
+ +

{{EmbedLiveSample('Example')}}

+ +

Especificaciones

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificaciónEstadoComentario
{{SpecName('CSS3 Backgrounds', '#border-right', 'border-right')}}{{Spec2('CSS3 Backgrounds')}}No direct changes, though the modification of values for the {{cssxref("border-right-color")}} do apply to it.
{{SpecName('CSS2.1', 'box.html#propdef-border-right', 'border-right')}}{{Spec2('CSS2.1')}}No significant changes.
{{SpecName('CSS1', '#border-right', 'border-right')}}{{Spec2('CSS1')}}Initial definition
+ +
{{cssinfo}}
+ +

Compatibilitidad del navegador

+ + + +

{{Compat("css.properties.border-right")}}

-- cgit v1.2.3-54-g00ecf