2 out of 6 rated this helpful - Rate this topic

-ms-word-break Attribute | wordBreak Property

Gets or sets line-breaking behavior within words, particularly where multiple languages appear in the object.

Syntax

CSS { -ms-word-break : sBreak }
Scripting [ sBreak = ] object.style.wordBreak

Possible Values

sBreak String that specifies or receives one of the following values.
normal
Default. Allows line breaking within words.
break-all
Behaves as normal for CJK text, yet allows the line to break arbitrarily for non-CJK text. This value is suited to CJK text that contains small amounts of non-CJK text.
keep-all
Behaves as normal for non-CJK text, but disallows word breaking for CJK text. This value is suited to non-CJK text that includes small amounts of CJK text.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has a default value of normal. The Cascading Style Sheets (CSS) attribute is inherited.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.

Remarks

Windows Internet Explorer 8. The -ms-word-break attribute is an extension to CSS, and can be used as a synonym for word-break in IE8 Standards mode.

When using the -ms-word-break attribute with a TABLE, you must set the table-layout attribute to fixed on the TABLE.

The behaviors of the parameter values are detailed in CSS Text Level 3: W3C Working Draft (6 March 2007), sec. 4.1, "Line Breaking Restrictions: The 'word-break' Property"; and in Unicode Standard Annex #14: Line Breaking Properties.

Standards Information

This property is defined in Unicode Standard Annex #14: Line Breaking Properties and is defined in Cascading Style Sheets (CSS), Level 3 (CSS3).

Applies To

ADDRESS, BLOCKQUOTE, BODY, CENTER, CSSStyleDeclaration, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP, CSSCurrentStyleDeclaration Constructor, CSSRuleStyleDeclaration Constructor, CSSStyleDeclaration Constructor
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ