CSS CSS Flexbox Layout Flexbox Properties Smarter Layouts with flex-basis and flex

Ryan Schmelter
Ryan Schmelter
9,710 Points

Does flex basis value apply to the container or each item?

When using flex-basis, does the value only apply to each item. For example, if I set a flex-basis of 200px, will it wrap once one of the items is 200px, or the whole container?

1 Answer

ywang04
ywang04
6,735 Points

flex and flex-basis apply to flex items only.