MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/usln38/a_visual_reference_of_css_flexbox/i966wr4/?context=3
r/webdev • u/eludadev front-end • May 18 '22
107 comments sorted by
View all comments
55
What's the difference between align items and content?
143 u/[deleted] May 19 '22 edited May 19 '22 The flex model uses an axis. Think of it like putting pieces of meat on a skewer for the barbecue.flex-direction determines which way the skewers are pointing (vertical? horizontal? where's the pointy end?)justify-content determines where the meat pieces go on the skewer (spread apart? closer to one end?)align-items determines how the meat pieces are aligned to each other across the whole stick (pierced through the center? or through the side?)If you have more than one skewer, align-content determines how they're arranged on the plate (spread apart? all at one side? which side?) 3 u/murfburffle May 19 '22 Thank you so much!
143
The flex model uses an axis. Think of it like putting pieces of meat on a skewer for the barbecue.
flex-direction determines which way the skewers are pointing (vertical? horizontal? where's the pointy end?)
flex-direction
justify-content determines where the meat pieces go on the skewer (spread apart? closer to one end?)
justify-content
align-items determines how the meat pieces are aligned to each other across the whole stick (pierced through the center? or through the side?)
align-items
If you have more than one skewer, align-content determines how they're arranged on the plate (spread apart? all at one side? which side?)
align-content
3 u/murfburffle May 19 '22 Thank you so much!
3
Thank you so much!
55
u/PoundedWhale May 18 '22
What's the difference between align items and content?