Controls
Shadows
Preview
Text Shadow
Presets
Generated CSS
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);Overview
Add depth and visual interest to typography with text shadows. Control horizontal and vertical offset, blur radius, and color. Stack multiple shadows for effects like glow, 3D text, or neon signs. Test against light and dark backgrounds.
What is CSS Text Shadow?
The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text, allowing you to create depth, emphasis, and visual interest in your typography.
How to Use Text Shadow
Text shadow accepts four values: horizontal offset, vertical offset, blur radius, and color. You can stack multiple shadows by separating them with commas, creating complex effects like 3D text, glows, and outlines.
Common Use Cases
- Adding depth to headings and hero text
- Creating readable text over images
- Designing glow effects and neon text
- Building 3D text effects with multiple shadows
- Improving text legibility with subtle shadows
Performance Considerations
Text shadows have minimal performance impact in modern browsers. However, using many shadows on large amounts of text can affect rendering performance on older devices.
Browser Support
Text shadow is widely supported across all modern browsers without the need for vendor prefixes.
