Text

white-space

Specifies how the browser handles space characters in the HTML code. By default words with more than one space between them will display as having only one space. Using the pre value will display text including the exact same white space character as the HTML code. Also to prevent the browser fro wrapping the text use the value nowrap.

Example

white-space: pre; 

Browser support

IE5.5+, FF1+, SA1.3+, OP9.2+

Values

normal Sets the default value.
nowrap Text wrapping is turned off.
pre White space is preserved.

Related properties

Can be used with..

Search the Soup!