What is the CSS white-space used for
Category: html-and-css
By: jeremy-one
The CSS property white-space
controls how whitespace and line breaks within an element are displayed. The default value for white-space
is normal, which collapses multiple spaces and line breaks into a single space and wraps text as needed.
In this mode, multiple spaces and line breaks are treated as a single space.
CSS Tricks has a complete guide to white-space