BlogsDope image BlogsDope

CSS text-wrap

March 21, 2021 CSS TEXT 2247

The text-wrap property is used to specify whether lines should break, and if they do, then at what break points.


text-wrap: value;


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.


See the Pen text-wrap property by Aakhya Singh (@aakhya) on CodePen.

Browser Support

This property is currently not supported in any major browser.

Liked the post?
Inquisitive and passionate Front-end Developer and Web Designer and Co-Founder of CodesDope.
Editor's Picks

Please login to view or add comment(s).