Loading...

white-space

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.

CSS class prefixes and related properties

Class name prefixCSS properties
whi-spa-*white-space

CSS class suffixes and property values

Class name suffixCSS properties value
*-nowrapnowrap
*-prepre
*-pre-wrappre-wrap
*-pre-linepre-line
*-break-spacesbreak-spaces
*-normalnormal

whi-spa: white-space

.whi-spa-nowrap.whi-spa-nowrap-hover.whi-spa-pre.whi-spa-pre-hover.whi-spa-pre-wrap.whi-spa-pre-wrap-hover.whi-spa-pre-line.whi-spa-pre-line-hover.whi-spa-break-spaces.whi-spa-break-spaces-hover.whi-spa-normal.whi-spa-normal-hover
.whi-spa-nowrap {
  white-space: nowrap;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.