B.129. word-wrap
This nonstandard property, supported by Internet Explorer for Windows version 5.5 or later, lets you specify whether words that are too long to fit within the assigned width of an element should overflow that width (the default behavior) or be wrapped to the next line at the edge of the box.
Inherited: Yes
See also: Section B.126width, Section B.114text-overflow
B.129.1. Value
break-word or normal
Initial value: normal
B.129.2. Compatibility
CSS Version: n/a
Internet Explorer 5.5 for Windows or later only.
B.129.3. Example
This style rule allows long words throughout the document to be wrapped forcibly if they overflow the assigned width of their containers:
body { word-wrap: break-word; }
Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.