By default Flexbox horizontal hota hai, par vertical banane ke liye
flex-direction: column; use hota hai.
Isse items **top → bottom** arrange honge. :contentReference[oaicite:0]{index=0}
.container{
display: flex;
flex-direction: column;
}
Vertical Flexbox me justify-content ka matlab hai **top to bottom main axis position** control. :contentReference[oaicite:1]{index=1}
justify-content: flex-start;
justify-content: center;
justify-content: flex-end;
Vertical Flexbox me align-items ka matlab hai
child items ko **left → center → right** position karna (cross axis). :contentReference[oaicite:2]{index=2}
align-items: flex-start;
align-items: center;
align-items: flex-end;
Agar aap chaho ki “sirf ek item” alag align ho, to
align-self use hota hai. :contentReference[oaicite:3]{index=3}
.override{
align-self: flex-end;
}
Normal vertical flow me items niche aate rahenge, par agar bahut items ho
aur jagah chhoti ho, to flex-wrap use karke wrap kara sakte ho. :contentReference[oaicite:4]{index=4}
.container{
display:flex;
flex-direction:column;
flex-wrap: wrap;
}