Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

white-space-collapse

3 tags 1 category

The white-space-collapse CSS property controls how white space inside an element is collapsed.

Note: The white-space-collapse and text-wrap-mode properties can be declared together using the white-space shorthand property.

Values: collapse White space sequences are collapsed. preserve White space sequences and segment break characters are preserved. preserve-breaks White space sequences are collapsed, while segment break characters are preserved. preserve-spaces White space sequences are preserved, while tabs and segment break characters are converted to spaces. break-spaces The behavior is identical to preserve, except that: Any sequence of preserved white space always takes up space, including at the end of the line. A line-breaking opportunity exists after every preserved white space character, including between white space characters. Preserved spaces take up space and do not hang, thus affecting the box’s intrinsic sizes (min-content size and max-content size).

Syntax example: white-space-collapse: collapse;

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…