CSS Flexbox difference between justify content and align items
Channel:
Subscribers:
2,930
Published on ● Video Link: https://www.youtube.com/watch?v=0o0RF13I4-g
what is the difference between justify content and align items in css
With this you will learn how to center elements vertically and horizontally. Or how to align elements to the end or the beginning of the container vertically or horizontally
So in flexbox we have a main axis and a cross axis. When we say justify we are talking about the main axis and when we say align we are talking about the cross axis.
By default the main axis is the horizontal one, but if we say flex-direction: column; now the main axis will be the vertical one