Last active
October 29, 2020 11:38
-
-
Save amorkovin/8f01a263438ca654144c12eed563716a to your computer and use it in GitHub Desktop.
Flex разное
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Перенос на следующую строку | |
flex-wrap: wrap; | |
justify-content — управляет выравниванием элементов по главной оси. | |
По умолчанию выстраивает элементы в начале блока. justify-content: flex-start | |
justify-content: flex-start; | |
justify-content: flex-end; | |
justify-content: center; | |
justify-content: space-between; | |
justify-content: space-around; | |
justify-content: stretch; | |
align-items — управляет выравниванием элементов по перекрёстной оси. | |
По умолчанию растягивает элементы по высоте. align-items: stretch | |
align-items: flex-start | |
align-items: flex-end | |
align-items: center | |
align-items: stretch | |
align-items: baseline | |
flex-direction: column — изменяет направление главной оси на вертикальное. | |
// Сентрирование по высоте и ширине содержимого | |
display: flex; | |
justify-content: center; | |
align-items: center; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment