Easy Tutorial
❮ Css3 Pr Border Bottom Right Radius Pr Grid Auto Flow ❯

CSS3 word-wrap Property

Example

Specifies that if a line is long enough, it should wrap:


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

Property Definition and Usage

The word-wrap property allows long content to be automatically wrapped.

Default value: normal
Inherited: yes
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.wordWrap="break-word"
--- ---

Syntax

Value Description
normal Breaks lines only at allowed break points (browser default handling).
break-word Breaks within long words or URLs.

Related Articles

CSS3 Tutorial: CSS3 Text Effects

❮ Css3 Pr Border Bottom Right Radius Pr Grid Auto Flow ❯