Skip to content

Instantly share code, notes, and snippets.

@acrookston
Created July 16, 2010 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acrookston/478269 to your computer and use it in GitHub Desktop.
Save acrookston/478269 to your computer and use it in GitHub Desktop.
.box-shadow {
width: 100px;
height: 100px;
position: absolute;
z-index: 100;
top: 10;
left: 10;
background: #fff;
-moz-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8); /* FF3.5+ */
-webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8); /* Saf3.0+, Chrome */
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8); /* Opera 10.5, IE 9.0 */
}
.ie-shadow {
display: block;
position: absolute;
top: 10; /* match target width */
left: 10; /* match target width */
width: 100px; /* match target width */
height: 100px; /* match target height */
z-index: 50; /* needs to be underneath the target box */
background: #000;
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='15', MakeShadow='true', ShadowOpacity='0.80');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment