Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
flex-shrink
and flex-grow
are not directly related to the size of the element in the sense that they do not directly determine the size (there is a flex-basis
). These properties determine the behavior of an element when shrinking (shrink) and expanding (grow).
Those. if the value of these properties is non-zero, then the element is allowed to shrink / expand, moreover, with a coefficient determined by the value of these properties. If the value is zero, the corresponding change is prohibited.
You can read more details, for example, on MDN ( one , two )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question