CSS text
The CSS text module defines how to perform text manipulation, like line breaking, justification and alignment, white space handling, and text transformation.
The CSS text module defines how to perform text manipulation, like line breaking, justification and alignment, white space handling, and text transformation.
Reference
Properties
- hanging-punctuation
- hyphenate-character
- hyphenate-limit-chars
- hyphens
- letter-spacing
- line-break
- overflow-wrap (and the
word-wrapalias) - tab-size
- text-align
- text-align-last
- text-fit
- text-indent
- text-justify
- text-autospace
- text-spacing-trim
- text-transform
- text-wrap
- text-wrap-mode
- text-wrap-style
- white-space
- white-space-collapse
- word-break
- word-spacing
The specification also defines the hyphenate-limit-last, hyphenate-limit-zone, line-padding, text-align-all, text-group-align, text-spacing, word-space-transform, wrap-after and wrap-before properties, which are not yet supported by any browser.
Guides
- Wrapping and breaking text
- : A guide to the various ways in which overflowing text can be managed in CSS.
- Handling whitespace
- : A guide introducing the various CSS properties that control the rendering of whitespace in the DOM, exploring the pitfalls and their mitigations.
Related concepts
Properties
- direction
- font-feature-settings
- initial-letter
- orphans
- text-combine-upright
- text-orientation
- text-overflow
- text-size-adjust
- unicode-bidi
- widows
- writing-mode
Values
- min-content
- max-content
HTML
- pre
- wbr
Specifications
See also
- CSS writing modes module
- CSS overflow module
- CSS fonts module
- CSS ruby layout module
- CSS text decoration module