Introduction
CSS Classes
React Components
Cssville has 8 utility classes for flex-shrink. Add one to an element's class attribute to set the property, for example fle-shr-0. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-fle-shr-0. Add -hover to the end to apply a class only on hover, as in fle-shr-0-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| fle-shr-* | -o-flex-shrink, -webkit-flex-shrink, flex-shrink |
| Class name suffix | CSS properties value |
|---|---|
| *-0 | 0 |
| *-1 | 1 |
| *-2 | 2 |
| *-3 | 3 |
| *-inherit | inherit |
| *-initial | initial |
| *-revert | revert |
| *-unset | unset |
.fle-shr-0 {
-o-flex-shrink: 0;
-webkit-flex-shrink: 0;
flex-shrink: 0;
}