nowrap attribute | noWrap property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
10 out of 18 rated this helpful - Rate this topic

Sets or retrieves whether the browser automatically performs wordwrap.

Syntax

HTML<element nowrap="p" ... >
JavaScript

p = object.noWrap

Property values

Type: Boolean

false (false)

Default. Browser automatically wraps the text.

true (true)

Browser does not wrap the text.

Standards information

Remarks

Care should be taken when the noWrap property is used in conjunction with the width attribute of table or td elements.

Wordwrap still occurs in a td element that has its WIDTH attribute set to a value smaller than the unwrapped content of the cell, even if the noWrap property is set to true. Therefore, the WIDTH attribute takes precedence over the noWrap property in this scenario.

If a td element has its noWrap set to true and the WIDTH attribute of its table element is set to a smaller dimension than the rendered content of the td element, wordwrap does not occur. In this case, the noWrap setting takes precedence over the WIDTH attribute.

See also

body
dd
div
dt
td
th

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.