Minimum Browser Support:
CSS3 Box Shadows
55.36%
Percentage of users who can view this feature (source: caniuse.com)
Uses text-shadow to provide subtle highlights to text throughout the site.
Leverages text-shadow and box-shadow to enhance design of page sections and type.
if(Modernizr.boxshadow) {
//box-shadow is supported
}
if(Modernizr.textshadow) {
//text-shadow is supported
}Learn more about detecting feature support with Modernizr.
If CSS3 box-shadow and text-shadow properties are not supported in the browser your content is running in, then you have a couple of fallback solutions. These include presenting the content without the shadows, displaying an image with the shadows (and content) pre-rendered as a bitmapped graphic, or placing a pre-rendered shadow graphic under the element.