--- id: bad87fee1348bd9acdf08812 title: Size Your Images challengeType: 0 videoUrl: '' localeTitle: حجم صورك --- ## Description
يحتوي CSS على خاصية تسمى width الذي يتحكم في عرض العنصر. تمامًا مثل الخطوط ، سنستخدم px (بكسل) لتحديد عرض الصورة. على سبيل المثال ، إذا أردنا إنشاء فئة CSS تسمى larger-image تعطي عناصر HTML عرضًا يبلغ 500 بكسل ، فسنستخدم:
<نمط>
.larger-image {
العرض: 500 بكسل ؛
}
</ النمط>
## Instructions
قم بإنشاء فئة باسم smaller-image واستخدمها لتغيير حجم الصورة بحيث يكون عرضها 100 بكسل فقط. ملحوظة
نظرًا لاختلاف تنفيذ المتصفح ، قد تحتاج إلى التكبير بنسبة 100٪ لاجتياز الاختبارات على هذا التحدي.
## Tests
```yml tests: - text: '' testString: 'assert($("img[src="https://bit.ly/fcc-relaxing-cat"]").attr("class") === "smaller-image", "Your img element should have the class smaller-image.");' - text: يجب أن تكون صورتك بعرض 100 بكسل. يجب أن يكون تكبير المتصفح بنسبة 100٪. testString: 'assert($("img").width() === 100, "Your image should be 100 pixels wide. Browser zoom should be at 100%.");' ```
## 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 ```