THE WORLD'S LARGEST WEB DEVELOPER SITE

CSS3 word-wrap Property


Example

Allow long words to be able to break and wrap onto the next line:

p.test {
    word-wrap: break-word;
}

Try it yourself »

Definition and Usage

The word-wrap property allows long words to be able to be broken and wrap onto the next line.

Default value: normal
Inherited: yes
Animatable: no. Read about animatable
Version: CSS3
JavaScript syntax: object.style.wordWrap="break-word" Try it

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
word-wrap 4.0 5.5 3.5 3.1 10.5 

CSS Syntax

word-wrap: normal|break-word|initial|inherit;

Property Values

Value Description
normal Break words only at allowed break points
break-word Allows unbreakable words to be broken
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Related Pages

CSS3 tutorial: CSS3 Text Effects



COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: