back

White-Space

This is used to define how white space within an element is handled by the browser.
It is used to declare how text will be wrapped.
Its options are:
(1) Normal, this is the default value, white space is collapsed (into one space)and text will wrap.
(2) Nowrap, white space is collapsed and text is not wrapped, lines will not be broken until a <br> tag.
(3) Pre, white space is preserved, text is not wrapped until a <br> tag, it is the CSS equivalent of the HTML <pre> tag.
(4) Pre-Wrap, white space is preserved but text is still wrapped.
(5) Pre-Line, white space is collapsed and text is wrapped.
(6) Inherit, the value is inherited from its parent element.

Example