Easy Tutorial
❮ Prop Fileupload Type Prop Form Enctype ❯

wordWrap Property

Style Object

Example

Allow long words to wrap to the next line:


Definition and Usage

The wordWrap property allows long words or URLs to wrap to the next line.


Browser Support

All major browsers support the wordWrap property.


Syntax

Return the wordWrap property:

Set the wordWrap property:

Property Values

Value Description
normal Only wraps at allowed break points (browser default handling).
break-word Wraps within long words or URLs.
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-wrap property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: word-wrap Property


Style Object

❮ Prop Fileupload Type Prop Form Enctype ❯