--- id: bad87fee1348bd9bedf08813 title: Add Borders Around Your Elements challengeType: 0 guideUrl: 'https://spanish.freecodecamp.org/guide/certificates/add-borders-around-your-elements' videoUrl: '' localeTitle: Añadir bordes alrededor de sus elementos --- ## Description
Los bordes CSS tienen propiedades como style , color y width Por ejemplo, si quisiéramos crear un borde rojo de 5 píxeles alrededor de un elemento HTML, podríamos usar esta clase:
<estilo>
.thin-red-border {
color del borde: rojo;
ancho del borde: 5px;
estilo de borde: sólido;
}
</style>
## Instructions
Crea una clase llamada thick-green-border . Esta clase debe agregar un borde verde sólido de 10 px alrededor de un elemento HTML. Aplica la clase a tu foto de gato. Recuerde que puede aplicar varias clases a un elemento utilizando su atributo de class , separando cada nombre de clase con un espacio. Por ejemplo: <img class="class1 class2">
## Tests
```yml tests: - text: Tu elemento img debería tener la clase smaller-image . testString: 'assert($("img").hasClass("smaller-image"), "Your img element should have the class smaller-image.");' - text: Tu elemento img debe tener la clase thick-green-border . testString: 'assert($("img").hasClass("thick-green-border"), "Your img element should have the class thick-green-border.");' - text: Dale a tu imagen un ancho de 10px de 10px . testString: 'assert($("img").hasClass("thick-green-border") && parseInt($("img").css("border-top-width"), 10) >= 8 && parseInt($("img").css("border-top-width"), 10) <= 12, "Give your image a border width of 10px.");' - text: Dale a tu imagen un estilo de borde solid . testString: 'assert($("img").css("border-right-style") === "solid", "Give your image a border style of solid.");' - text: El borde alrededor de su elemento img debe ser verde. testString: 'assert($("img").css("border-left-color") === "rgb(0, 128, 0)", "The border around your img element should be green.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```
## Solution
```js // solution required ```