text-shadow

Adds a shadow to text. You can control the shadow's offset (X and Y), blur radius, and color. You can also stack multiple shadows by separating them with commas.

It is documented as part of the CSS Text Decoration specification.

/* Usage Example */
.glowing-text {
  /* Creates a subtle 2px shadow shifted slightly right and down */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Syntax */
text-shadow: none;

/* Global values */
text-shadow: inherit;
text-shadow: initial;
text-shadow: revert;
text-shadow: revert-layer;
text-shadow: unset;
Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

2+
3.5+
1.1+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC