property

text-shadow — CSS reference

Paints shadows behind glyphs. Initial none and inherited. Shadows do not increase layout dimensions. Large blurred shadows may reduce readability.

Formal Syntax & Structure

css syntaxcss
none | <shadow># (two offsets, optional blur and color)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{text-shadow:1px 2px 3px black}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>
CSS Reference