CSS · Typography

text-shadow

Adds a shadow to the glyphs. Keep it subtle for readability.

Syntax
text-shadow: 0 1px 2px rgb(0 0 0 / 0.3)

Example

Try it

More in this group

font-family font-size font-style font-variant-numeric font-weight letter-spacing line-height list-style

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course