Skip to content

Instantly share code, notes, and snippets.

@geoffreycrofte
Created February 14, 2012 17:24
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 geoffreycrofte/1828304 to your computer and use it in GitHub Desktop.
Save geoffreycrofte/1828304 to your computer and use it in GitHub Desktop.
Curved box Shadow
/**
* 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);
}
<!-- content to be placed inside <body>…</body> -->
<div></div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment