Property text-wrap-mode
The text-wrap-mode
CSS property controls whether the text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the text-wrap
shorthand or the white-space
shorthand.
Syntax
/* Keyword values */
text-wrap-mode: wrap;
text-wrap-mode: nowrap;
/* Global values */
text-wrap-mode: inherit;
text-wrap-mode: initial;
text-wrap-mode: revert;
text-wrap-mode: revert-layer;
text-wrap-mode: unset;
Values
This property specifies whether lines may wrap at unforced soft wrap opportunities. Possible values:
-
wrap Text is wrapped across lines at appropriate characters (for example spaces, in languages like English that use space separators) to minimize overflow. This is the default value.
-
nowrap Text does not wrap across lines. It will overflow its containing element rather than breaking onto a new line.