Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS3 text-wrap property


May 06, 2021 CSS Reference Manual


Table of contents


Line changes are not allowed:

p.test {text-wrap:none;}

Give it a try yourself

Browser support

CSS3 text-wrap property

Text-wrap properties are not currently supported by mainstream browsers.

Definitions and usages

The text-wrap property specifies a line break (line break) rule for text.

Default: normal
Inheritance: yes
Version: CSS3
JavaScript syntax: object .style.textWrap="none"

Grammar

text-wrap: normal|none|unrestricted|suppress;
Value Describe
normal Line-ups are made only at the allowed line-up points.
none No line changes. Text that the element cannot hold overflows.
unrestricted Line between any two characters.
suppress Line-ups in the compressed element. The browser only new lines when there are no other valid line change points in the line.