0

The last question I met is the same as the link here: Width ignored on flexbox items
Everything looks so nice but at the last moment, I want to change the direction of the flex container, so I added flex-direction: column; then the flex items grow as wide as the container, but I do have flex-grow: 0; Can anyone explain why the result will go like that? Thanks a lot!

hayley
  • 384
  • 5
  • 17

1 Answers1

0

flex-grow is the ability of the flex items in the direction given by flex-direction.

What you are searching for is align-items

yunzen
  • 32,854
  • 11
  • 73
  • 106