Зміст курсу
Основи CSS
Основи CSS
Вирівнювання Елементів по Вертикалі
The align-items
property governs the vertical arrangement of flex items. Its default value is stretch
.
css
stretch
Це означає, що ми розтягуємо елементи на всю довжину поперечної осі.
stretch
It means that we extend items to the entire length of the cross axis.
index.html
index.css
center
Items are in the center of the cross axis.
index.html
index.css
flex-start
All items start at the beginning of the cross axis.
index.html
index.css
flex-end
All items are in the end of the cross axis (in the end of the parent flex container).
index.html
index.css
baseline
All flex items are aligned based on their text content baseline.
index.html
index.css
1. Що робить властивість align-items?
2. Які з наведених нижче значень можна використовувати з властивістю align-items?
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 4