Skip to content

Instantly share code, notes, and snippets.

@LL782
Created August 27, 2012 15:06
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 LL782/3489336 to your computer and use it in GitHub Desktop.
Save LL782/3489336 to your computer and use it in GitHub Desktop.
Realistic CSS3 Shadow
/*
* Realistic CSS3 Shadow
*/
#redbox {
background-color: #9C101A;
position: relative;
width: 50%;
height: 300px;
margin: 20px auto 0;
top: 0;
left: 0;
}
#redbox:after{
content:'';
box-shadow: 8px 12px 10px rgba(0, 0, 0, 0.7);
position: absolute;
background: transparent;
border-radius: 99%;
width: 96%;
bottom:6px;
left: 0;
width:;
height:10%;
z-index: -1;
}
#square:after {
right: 0;
}
<div id="redbox"></div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment