white-space property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
This property represents trimming and wrapping behavior for text content.
text is not trimmed i.e. text-space-trim is none for all of the values given below.
Syntax
animation-delay : normal | pre | nowrap | pre-wrap | break-spaces | pre-line
Property values
pre-line
-
preserves white-space as well as line breaks and wraps the text.
- Try it
white-space: pre-line;
Applicable to
It applies to all elements