CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Text Shadow Property in CSS

The text-shadow Property



The text-shadow property defines shadow effects, to be applied to the text content of the current element.


Four components of text-shadow are:-


  • Offset-x
  • Offset-y
  • Blur
  • Color


For your Information:-


We can add multiple shadows by only putting commas between them.




Its syntax is:-

< style >


text-shadow: h-shadow v-shadow blur-radius color|none|initial|inherit;


< /style >


Further Explanation:-


Value Description
h-shadow Required. The position of the horizontal shadow.
v-shadow Required. The position of the vertical shadow.
blur-radius Optional. The blur radius.
color Optional. The color of the shadow.
none No shadow.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS3

All Sections related to CSS