This property controls how white space and carriage returns/linefeeds should
be handled in a document. 'Normal' is the inherent value for most HTML
elements, with the exceptions having their own tags to create special behavior.
This is a very powerful property and should be used with caution.
Allowed Values
inherit
CSS2
Type: Explicit
Description:
Explicitly sets the value of this property to that of the parent.
normal
CSS1 | CSS2
| N4B2
Type: Explicit
Description:
This setting is the normal behavior of most HTML elements. Occurrences of
carriage returns, linefeeds and multiple spaces are treated as a single
space. Line wrapping is controlled by the browser.
pre
CSS1 | CSS2
| N4B2
Type: Explicit
Description:
This setting makes rendered content behave like the HTML
PRE[-->Index DOT Html] element , where
line-wrapping control is taken away from the browser and all spaces,
carriage returns, and linefeeds in the document are preserved and
displayed "as-is" from the source.
nowrap
CSS1 | CSS2
Type: Explicit
Description:
Selector content with a property value of 'nowrap' collapse multiple
carriage returns/linefeeds and multiple spaces to a single space, but
linebreaking is not controlled by the browser. They are instead
controlled only by the HTML
BR[-->Index DOT Html] element.
Example
Ext/Doc: p {
white-space: normal }
In-Line: <pSTYLE="white-space:
normal">text</p>
Notes
CSS1 Conformance: Browsers may ignore this property
and still be considered CSS1 conformant. In such a case, the browser
defaults must be used instead.