CSS 29 π» align-content and align-self properties
https://www.youtube.com/watch?v=tlyTYkHdt-k
a - align-content property
align-content controls the alignment of flex items along the cross axis It applies to the container itself and not on individual items values β start, center, end, flex-start, flex-end, baseline... ...space-between, space-around, space-evenly, stretch... ... safe center and unsafe center align-content: stretch; β default value, fills the container along the cross axis align-content: flex-start; β to the cross-axis start side align-content: center; β close to each other in the center of the container
b - align-self property
align-self sets individually the alignment of a flex item along the cross axis values β start, center, end, flex-start, flex-end, anchor-center baseline... ...space-between, space-around, space-evenly, stretch... ... safe center and unsafe center align-self: stretch; β Stretch 'auto'-sized items to fit the container align-self: flex-end; β Put the flex item at the end align-self: center; β Puts the item around the center align-self: baseline; βaligns to the alignment baseline