CSS text
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 theword-wrap
alias)tab-size
text-align
text-align-last
text-indent
text-justify
text-spacing-trim
Experimentaltext-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-lines
, hyphenate-limit-zone
, line-padding
, text-align-all
, text-autospace
, text-group-align
, text-spacing
, white-space-trim
, word-space-transform
, wrap-after
, wrap-before
, and wrap-inside
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.
Related concepts
Properties
Values
HTML
Specifications
Specification |
---|
CSS Text Module Level 3 |
CSS Text Module Level 4 |
See also
- CSS writing modes module
- CSS overflow module
- CSS fonts module
- CSS ruby layout module