ericj
ericj

Reputation: 2301

What does flex-shrink attribute in a flexbox item do?

I don't understand what the flex-shrink attribute in a flexbox item means.

Maybe you can give me a small example.

Upvotes: 0

Views: 105

Answers (2)

bikbah
bikbah

Reputation: 409

flex-shrink - This defines the ability for a flex item to shrink if necessary.
See css-tricks

Upvotes: 0

iantresman
iantresman

Reputation: 289

It "determines how much the flex item will shrink relative to the rest of the flex items in the flex container when there isn't enough space on the row." See "flex-shrink"

Upvotes: 1

Related Questions