Introduction
CSS Classes
React Components
Cssville has 6 utility classes for white-space. Add one to an element's class attribute to set the property, for example whi-spa-nowrap. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-whi-spa-nowrap. Add -hover to the end to apply a class only on hover, as in whi-spa-nowrap-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| whi-spa-* | white-space |
| Class name suffix | CSS properties value |
|---|---|
| *-nowrap | nowrap |
| *-pre | pre |
| *-pre-wrap | pre-wrap |
| *-pre-line | pre-line |
| *-break-spaces | break-spaces |
| *-normal | normal |
.whi-spa-nowrap {
white-space: nowrap;
}