How to set inner text shadow with CSS ? Last Updated : 11 May, 2023 Comments Improve Suggest changes Like Article Like Report CSS is a style sheet language that describes the document's presentation written with HTML or similar markup languages. In this tutorial, we are going to learn how to set inner text shadows with CSS. Approach: Text shadow is used to design the text elements such as paragraphs, headings, etc. We first set the background color and made the text color transparent. Then we clip the background according to the text to get that part only. Finally, we put the blurred text-shadow in front of the text which gives the inner text-shadow. Syntax of inner text-shadow: text-shadow: offset-x | offset-y | blur-radius | colour background-clip: text; color: transparent;offset-x: This specifies the distance of the shadow from the text in x-axes.offset-y: This specifies the distance of the shadow from the text in y-axes.blur-radius: The higher the value, the bigger the shadow and light.color (text-shadow): It specifies the shadow color.background-clip: This specifies the clipping element which is a text here.color: This specifies the color of the text. We want it transparent here. Example: In the following example shows the inner text shadow with zero offsets on both axes. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style> .inner { background-color: #565656; font: bold 48px 'Futura'; color: transparent; text-shadow: 0px 0px 3px rgba(91, 255, 76, 0.8); -webkit-background-clip: text; -moz-background-clip: text; background-clip: text; } </style> </head> <body> <center> <div> <h1 style="color: green;"> GeeksforGeeks </h1> </div> <strong> How to set inner text shadow with CSS ? </strong> <br /> <br /> <p class="inner"> Welcome to GeeksforGeeks </p> </center> </body> </html> Output Comment More infoAdvertise with us Next Article How to set inner text shadow with CSS ? M manavsarkar07 Follow Improve Article Tags : Web Technologies CSS CSS-Questions Similar Reads How to Set the Inset Shadow Using CSS ? In CSS, setting an inset shadow involves creating an inner shadow effect within an element's boundaries. Unlike traditional shadows that appear outside the element, an inset shadow gives a recessed or sunken look, enhancing the element's visual depth and appearance.Note: By default, the shadow gener 2 min read How to Add Text Outline with CSS? Since CSS does not provide a direct text-outline property, the CSS text-shadow property is used to create an outline effect around text by adding multiple shadows with offsets.1. Using text-shadow PropertyThe text-shadow property is commonly used to add shadows to text, by applying multiple shadows 1 min read How to Add Shadow to Text using CSS? The text-shadow property is used to add shadow to the text. The text-shadow property creates text shadows, specifying horizontal/vertical offsets, blur radius, and color for depth and emphasis.Note: We can customize text shadow by changing position, blur, and color for improved appearance and visual 1 min read How to Add Text Shadow in Tailwind CSS? Adding a text shadow in Tailwind CSS is useful for making text for creating visual effects like glows and embossed or debossed effects. Tailwind CSS does not provide text shadow utilities out of the box but it allows you to easily extend its functionality to add custom utilities. In this article, we 3 min read CSS text-shadow Property The CSS text-shadow property adds shadows to text for depth and emphasis. It accepts values for horizontal and vertical shadow positions, blur radius, and shadow color. The default is no shadow is none. Syntax text-shadow: h-shadow v-shadow blur-radius color | none | initial | inherit; Property valu 3 min read Like