PROPERTY: white-space

white-space : normal | pre | nowrap
 
Compatibility:  IE5.5  N4+
Version: Level 1
Inherited: Yes
 
The white-space property determines the use of white space (blank space) inside an element.
 
normal
 
The normal value is the default.
 
pre
 
The pre value behaves like the HTML tag <pre>.
 
nowrap
 
The nowrap value allows a text to continue on the same line until the end of the text or until an HTML tag <br> is encountered. The <br> tag causes the text to wrap down to the next line.
 
Code:
p { white-space: normal; }
p { white-space: pre; }
p { white-space: nowrap; }

 
or
 
<p style="white-space: pre;"> How       now       purple       cow? </p>
 
Output:

How now purple cow?



Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information