BlogsDope image BlogsDope

CSS text-wrap

March 21, 2021 CSS TEXT 409

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.


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

Please login to view or add comment(s).