--- id: 587d78ae367417b2b2512afd title: Use the flex-basis Property to Set the Initial Size of an Item challengeType: 0 videoUrl: '' localeTitle: Используйте свойство flex-basis для установки начального размера элемента --- ## Description
Свойство flex-basis указывает начальный размер элемента до того, как CSS выполнит корректировки с flex-shrink или flex-grow . Единицы, используемые свойством flex-basis такие же, как и другие свойства размера ( px , em , % и т. Д.). Значение auto определяет размеры элементов на основе содержимого.
## Instructions
Установите начальный размер ящиков с использованием flex-basis . Добавьте свойство CSS flex-basis как в #box-1 и в #box-2 . Дайте #box-1 значение 10em и #box-2 значение 20em .
## Tests
```yml tests: - text: 'Элемент #box-1 должен иметь свойство flex-basis .' testString: 'assert($("#box-1").css("flex-basis") != "auto", "The #box-1 element should have a flex-basis property.");' - text: '#box-1 элемент должен иметь flex-basis значение 10em .' testString: 'assert(code.match(/#box-1\s*?{\s*?.*?\s*?.*?\s*?flex-basis:\s*?10em;/g), "The #box-1 element should have a flex-basis value of 10em.");' - text: 'Элемент #box-2 должен иметь свойство flex-basis .' testString: 'assert($("#box-2").css("flex-basis") != "auto", "The #box-2 element should have the flex-basis property.");' - text: '#box-2 элемент должен иметь flex-basis значение 20em .' testString: 'assert(code.match(/#box-2\s*?{\s*?.*?\s*?.*?\s*?flex-basis:\s*?20em;/g), "The #box-2 element should have a flex-basis value of 20em.");' ```
## Challenge Seed
```html
```
## Solution
```js // solution required ```