whiteSpace property
[This documentation is preliminary and is subject to change.]
Sets or retrieves a value that indicates whether lines are automatically broken inside the object.
Syntax
Integer value = object.put_whiteSpace(BSTR v);Integer value = object.get_whiteSpace(BSTR* sWrap);
Property values
Type: BSTR
normal (normal)
-
Default. Lines of text break automatically. Content wraps to the next line if it exceeds the width of the object.
nowrap (nowrap)
-
Line breaks are suppressed. Content does not wrap to the next line.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | 1 |
| Initial Value |
Remarks
Whitespace, such as line breaks, spaces, and tabs, is collapsed by default in HTML documents. You can use the nonbreaking space entity ( ) to add extra spaces to an object when the white-space property is set to normal or nowrap. You can add extra line breaks using the br element.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- Reference
- pre
- -ms-word-wrap
- Other Resources
- CSS Enhancements in Internet Explorer 6
Build date: 1/23/2012