white-space

Support Key: CSS1 | CSS2 | N4B2
Other Text Properties
word-spacing
letter-spacing
text-align
text-decoration
text-transform
text-shadow
text-indent
= Index DOT Css by Brian Wilson [bloo@blooberry.com] =
  Main Index | Property Index | CSS Support History | Browser History  



   Quick Statistics   
Default Value:
normal
Applicable Elements:
Block Level Elements
Inherit From Parent:
Yes
Applicable Media:
Visual
HTML Equivalent:
<pre> | <nobr>
What is it?
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:  <p STYLE="white-space: normal">text</p>
Notes Browser Peculiarities

Boring Copyright Stuff....