Home | Top | Website design | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


word-break Attribute | wordBreak Property

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

Syntax

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

Possible Values

sBreak String that specifies or receives one of the following values.
normal Default. Allows line breaking within words.
break-all Behaves the same as normal for Asian text, yet allows the line to break arbitrarily for non-Asian text. This value is suited to Asian text that contains some excerpts of non-Asian text.
keep-all Does not allow word breaking for Chinese, Japanese, and Korean. Functions the same way as normal for all non-Asian languages. This value is optimized for text that includes small amounts of Chinese, Japanese, or Korean.

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.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .

Remarks

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

Standards Information

This property is part of a proposed addition to Cascading Style Sheets (CSS) .

Applies To

Platform Version
Win16:
Win32:
Unix:
Mac:
Windows CE:
 
ADDRESS , BLOCKQUOTE , BODY , CENTER , 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
Home | Top | Website design | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.