Flex shrink
noun
say it: “FLEKS SHRINK” /flɛks ʃrɪŋk/
A number that says how much a flex item gives up when there isn't enough room; 0 means it never gets smaller than its starting size.
What does flex-shrink do?
flex-shrink says how much an item gives up when there isn't enough room. 0 means "don't shrink".
.logo { flex-shrink: 0; } /* the logo never gets squashed */
In a sentence
- “I set the logo's flex-shrink to 0, so on a phone the links get narrower but the logo stays whole.”
Level: Journeyman · More CSS terms at this level
Updated