Open In App

CSS text-shadow Property

The text-shadow property in CSS brings a touch of depth and drama to your text by adding shadows. This property accepts a list of shadows to be applied to the text, separated by commas. Remember, the default value of the text-shadow property is none.

Syntax:

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

Property values: 

Example: This example shows the use of the text-shadow property with specific values assigned in pixels.

<!DOCTYPE html>
<html>
<head>
    <title> CSS | text-shadow Property </title>
    <style>
    h1 {
        text-shadow: 5px 5px 8px #00FF00;
    }
    </style>
</head>

<body>
    <h1> GeeksforGeeks </h1> 
</body>
</html>

Output:

Supported Browsers: The browsers supported by the text-shadow property are listed below:

Article Tags :