--- id: 587d7791367417b2b2512ab4 title: Adjust the Width of an Element Using the width Property challengeType: 0 videoUrl: https://scrimba.com/c/cvVLPtN forumTopicId: 301039 localeTitle: Настройка ширины элемента с помощью свойства width --- ## Description
Вы можете указать ширину элемента, используя свойство width в CSS. Значения могут быть указаны в единицах относительной длины (например, em), единицах абсолютной длины (например, px) или в процентах от содержащего его родительского элемента. Вот пример, который задаёт ширину изображения равной 220 пикселям:
img {
width: 220px;
}
## Instructions
Добавьте свойство width ко всей карточке и установите абсолютное значение 245px. Используйте класс fullCard чтобы выбрать элемент.
## Tests
```yml tests: - text: Your code should change the width property of the card to 245 pixels by using the fullCard class selector. testString: assert($('.fullCard').css('width') === '245px' && /\.fullCard{\S*width:245px(;\S*}|})/.test($('style').text().replace(/\s/g ,''))); ```
## Challenge Seed
```html

Google

Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

```
## Solution
```html

Google

Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

```