Created
February 14, 2012 17:24
-
-
Save geoffreycrofte/1828304 to your computer and use it in GitHub Desktop.
Curved box Shadow
This file contains 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
/** | |
* Curved box Shadow | |
* Alternative : http://www.creativejuiz.fr/blog/tutoriels/ombre-avancees-avec-css3-et-box-shadow | |
*/ | |
div { | |
margin: 3em; | |
width: 500px; | |
height: 240px; | |
background-color: #f6f6f6; | |
/* | |
a "parent bg-color" box-shadow over the main shadow | |
Understand it with : box-shadow: 0 88px 149px 49px #4FF, 0 12px 9px -5px rgba(0, 0, 0, 1); | |
*/ | |
box-shadow: 0 88px 149px 49px #FFF, 0 12px 9px -5px rgba(0, 0, 0, 1); | |
} | |
This file contains 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
<!-- content to be placed inside <body>…</body> --> | |
<div></div> |
This file contains 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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment