View video tutorial

CSS Text Shadow

CSS

This property adds shadow to text.

CSS Text Shadow.

The text-shadow property is used to specify shadow to text.

This can be done in following ways.

Example

#p1 {
  text-shadow: 2px 2px;
}
Try it Now »

Click on the "Try it Now" button to see how it works.


CSS Text Shadow Add Color.

Example

#p1 {
  text-shadow: 2px 2px red;
}
Try it Now »

Click on the "Try it Now" button to see how it works.