whiteSpace Property Sample

This sample uses the whiteSpace property to control line breaks and spaces between words in the object.

whiteSpace:

[ normal | nowrap | pre ]

In the source, this sentence has three spaces between each word.
This sentence takes up three lines in the source.

(The pre possible value is supported in Internet Explorer 6 and later when the !DOCTYPE declaration specifies standards-compliant mode.)




[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.