Example

A simple word-break property example:

Laboratory

description & Usage

The word-break property determines how to break text when it needs to break on one line and continue to the next line.

Informations

# Description
Default Value normal
Inherited yes
Animatable no
Version CSS3
JavaScript syntax object.style.wordBreak="break-all"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
word-break

Syntax

Values

Values Description
normal Default
break-all The word may be broken at any character.
keep-all Word breaks should not be used for Chinese, Japanese and Korean languages because the behavior of CJK texts is the same as the normal behavior.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.