Created
August 27, 2012 15:06
-
-
Save LL782/3489336 to your computer and use it in GitHub Desktop.
Realistic CSS3 Shadow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="redbox"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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