In: Computer Science
What property should be provided for a flex item to dictate the amount of the available space inside the flex container the item should take up?
flex-shrink
order
flex-grow
No answer text provided.
Answer is flex-grow:
when we set
flex-grow = 0.
It won't grow by default
but if when mention
flex-grow as a positive value, it would cause the items to grow and can take up the available space that is required.
In opposite it it , when we set
flex-shrink = 0
it won't shrink by default
but if we mention
flex-shrink as positive values, it will start shrinking.