CSS3 word-wrapProperty
Example
Specifies whether to allow line breaking if the content is long enough:
p.test {word-wrap:break-word;}
Try it Yourself »
Browser Support
The numbers in the table indicate the first browser version that supports the property.
| Property | |||||
|---|---|---|---|---|---|
| word-wrap | 4.0 | 5.5 | 3.5 | 3.1 | 10.5 |
Attribute Definition and Usage Instructions
The word-wrap property allows long content to wrap automatically.
| Default value: | normal |
|---|---|
| Inherited: | yes |
| version: | CSS3 |
| JavaScript Syntax: | object.style.wordWrap="break-word" |
Syntax
word-wrap: normal|break-word;
| Value | Description |
|---|---|
| normal | Break lines only at allowed hyphenation points (browsers keep default handling). |
| break-word | Break lines inside long words or URL addresses. |
Related Articles
CSS3 Tutorial:CSS3 Text Effects
other extensions