CSS text
TheCSS text module defines how to perform text manipulation, like line breaking, justification and alignment, white space handling, and text transformation.
In this article
Reference
>Properties
hanging-punctuationhyphenate-characterhyphenate-limit-charshyphensletter-spacingline-breakoverflow-wrap(and theword-wrapalias)tab-sizetext-aligntext-align-lasttext-indenttext-justifytext-autospacetext-spacing-trimExperimentaltext-transformtext-wraptext-wrap-modetext-wrap-stylewhite-spacewhite-space-collapseword-breakword-spacing
The specification also defines thehyphenate-limit-last,hyphenate-limit-lines,hyphenate-limit-zone,line-padding,text-align-all,text-group-align,text-spacing,white-space-trim,word-space-transform,wrap-after,wrap-before, andwrap-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.
- 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
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
- CSS text decoration module