AverageCakeSlice, (edited )

So, for flex-direction: column, usually you’ll want to use it when you need multiple items to be consistently spaced vertically. For example, you have a testimonials section on your webpage with some divs that contain quotes, and you want them to be centered in the page, stack on top of each other, and have equal spacing between each quote. This is where flex-direction: column comes in. You just set the flex five to the height you want, slap display: flex and the flex direction properties on it, set justify-content to between, and maybe align-items to center so that all the child divs are in the center of the parent, and voila!

In real life, you’ll mainly see this used on mobile, where lots of elements need to be stacked on top of each other, but there are cases on other viewports where it makes sense. For example, in lining up fields in a vertical form like a login or sign up page where the username, password, and login/create account buttons are all stacked on top of each other.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines