Text Effects Cheat Sheet
Text Effects Cheat Sheet
The effects developers use on text items on a web page are chosen mainly because of their styling and
layout style. Interesting effects can be created by combining these with other CSS properties.
The visual representation of text content can be changed by four main properties: text-transform, font-
style, font-weight and text-decoration.
Text- Shorthand for auxiliary elements added to text using other proper
None, underline, overline, line-through
decoration as text-decoration-line
The additional properties that help configure styling effects are below.
Text-align-last Alignment for the last line when text set to justify
Text-combine-upright Multiple characters into the space of a single character placed upright like in Mandarin
Text-decoration-style Styles added to lines under text such as wavy, dotted and so on
Other than these, there are some more properties that help modify the alignment and define the scope
of text with their containers.
Property Values Description
Text-overflow Clip, ellipsis Determines overflow behavior of text with the container
Word-wrap Normal, anywhere, break-word Applies to inline elements, alias for overflow-wrap
Word-break Normal, break-all, keep-all, break-word Used for long words to decide if words should break or overfl
Writing-mode Horizontal-tb, vertical-lr, vertical-rl Can set the text direction vertical or horizontal
The properties mentioned are ones that can be used for giving effects to text.