Search within TutorialsPark

CSS3 word-wrap Property


To specify the way any word should break


Definition and Notes.

1. The CSS word-break property is used to specify what to do when a word is longer than its containing block.

2. It is used for long text, say a URL, to be broken if it would otherwise overflow.


Syntax:

CSS word-wrap property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note: It can be used for long scientific terminologies which should be read as a single word.

Property Values

Value Description
normal The word is not broken even when it overflows the containing element. Lines break only at normal break points
break-word The word is not broken. Lines may break at the arbitary points if no break point is found

Specifications

Specs Value
Name word-wrap
Value normal | break-word
Initial Value normal
Applies to All elements
Javascript syntax object.style.wordWrap="break-word"
Inherited Yes
Computed Value Same as declared Value
Browser Support internetexplorer safari firefox opera chrome


Related Examples.