The word-wrap property is used in CSS and certain HTML elements. It was introduced in Gecko 1.9.1. This property is used to to specify whether or not the browser is allowed to break lines within words in order to prevent overflow when an otherwise unbreakable string is too long to fit.


  • normal - Lines may only break at normal word break points.
  • break-word - Unbreakable words may be broken at arbitrary points if there are no other acceptable break points in the line.

HTML example:

<span style="word-wrap:break-word; background:green; width:15em;">exampexamplexamplexamplexampl</span>

CSS h1 example:

h1 {

See Also

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.