Easy Tutorial
❮ Jsref Prototype Num Jsref Getminutes ❯

Style wordBreak Property

Style Object

Example

Break lines between any two letters:


Definition and Usage

The wordBreak property specifies the breaking rules for non-CJK languages.

Tip: CJK languages refer to Chinese, Japanese, and Korean.


Browser Support

All major browsers support the wordBreak property.


Syntax

Return the wordBreak property:

Set the wordBreak property:

Property Values

Value Description
normal Default value. Uses the browser's default line break rules.
break-all Allows line breaks between any two letters within a word.
keep-all Line breaks can only occur at half-width spaces or hyphens.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: normal
Return value: A string representing the word-break property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: word-break Property


Style Object

❮ Jsref Prototype Num Jsref Getminutes ❯