Glossary Term
white-space
The white-space CSS shorthand property sets how white space inside an element is handled.
Whether and how white space is collapsed. Whether and how lines wrap.
Note: To make words break within themselves, use overflow-wrap, word-break, or hyphens instead.
Values: The white-space property values can be specified as one or two keywords representing the values for the white-space-collapse and text-wrap-mode properties, or the following special keywords:
Values: normal Sequences of white space are collapsed. Newline characters in the source are handled the same as other white spaces. Lines are broken as necessary to fill line boxes. Equivalent to collapse wrap. pre Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements. Equivalent to preserve nowrap. pre-wrap Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes. Equivalent to preserve wrap. pre-line Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes. Equivalent to preserve-breaks wrap.
Syntax example: white-space: normal;
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
