www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
 wordBreak Property
word-break Attribute | wordBreak Property

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

Syntax

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

Possible Values

sBreakString that specifies or receives one of the following values.
normalDefault. Allows line breaking within words.
break-all Behaves 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 small amounts of non-Asian text.
keep-all Behaves as normal for non-Asian text, but disallows word breaking for Chinese, Japanese, and Korean text. This value is suited to non-Asian text that includes small amounts of Chinese, Japanese, or Korean 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.

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 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" World Wide Web link; and in Unicode Standard Annex #14: Line Breaking Properties World Wide Web link.

Standards Information

This property is defined in Cascading Style Sheets (CSS), Level 3 (CSS3) World Wide Web link.

Applies To

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
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG