CSS text-shadow property

Description

CSS text-shadow property drops a shadow of the text.

Syntax

text-shadow : none | horizontal-offset   vertical-offset   blur-radius   shadow-color

Property values

none

No shadow for the text.

text-shadow: none;

Property values

horizontal-offset

It represents the horizontal-offset of the text shadow from the original text.

text-shadow: 2px;

vertical-offset

It represents the vertical-offset of the text shadow from the original text.

text-shadow: 2px;

blur-radius

It blurs the text shadow.

text-shadow: 5px;

shadow-color

It represents the shadow color.

text-shadow: rgba(255,0,0);

Applicable to

It applies to block containers.

#CSS digger
Was this article helpful?

 
the text-shadow property
×

Ctrl+D