The text-wrap
property is used to specify whether lines should break, and if they do, then at what break points.
CSS
text-wrap: value;
Values
normal
: This is the default value. Lines break at normal break points like white spaces.
none
: Lines don't break. This leads to the overflow of the text that doesn't fit in the parent element's width.
unrestricted
: Lines may break between two characters.
suppress
: Lines may break within the element only if there are no other valid break points in the line.
Example
See the Pen text-wrap property by Aakhya Singh (@aakhya) on CodePen.
Browser Support
This property is currently not supported in any major browser.