--- id: bad87fee1348bd9bedf08813 title: Add Borders Around Your Elements challengeType: 0 guideUrl: 'https://arabic.freecodecamp.org/guide/certificates/add-borders-around-your-elements' videoUrl: '' localeTitle: أضف حدود حول عناصرك --- ## Description
تحتوي حدود CSS على خصائص مثل style color width على سبيل المثال ، إذا أردنا إنشاء حد أحمر يبلغ 5 بيكسل حول عنصر HTML ، فيمكننا استخدام هذا الفصل الدراسي:
<نمط>
.thin-red-border {
لون الحدود: أحمر.
border-width: 5px؛
نمط الحدود: صلب ؛
}
</ النمط>
## Instructions undefined ## Tests
```yml tests: - text: يجب أن يكون لعنصر img الخاص بك فئة smaller-image . testString: 'assert($("img").hasClass("smaller-image"), "Your img element should have the class smaller-image.");' - text: '' testString: 'assert($("img").hasClass("thick-green-border"), "Your img element should have the class thick-green-border.");' - text: امنح صورتك عرضًا بحدود 10 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: امنح صورتك نمطًا حدوديًا solid . testString: 'assert($("img").css("border-right-style") === "solid", "Give your image a border style of solid.");' - text: '' 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 ```