# Property Description

The white-space property sets how white-space inside an element is to be handled.

# Property Values

Value | Description
--- | ---
normal | (default) Whitespace sequences will collapse into a single whitespace. Text will wrap as necessary
nowrap | Whitespace sequences will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a <br /> tag is encountered
pre | Whitespace is preserved by the browser. Text will only wrap on line breaks
pre-line | Whitespace sequences will collapse into a single whitespace. Text will wrap when necessary, and on line breaks
pre-wrap | Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example specifies that text in paragraphs will not wrap.

    p {
      white-space:nowrap;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | Yes
Defined In: | CSS1