Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created November 5, 2012 04:04
Show Gist options
  • Save Ricardo-Diaz/4015255 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/4015255 to your computer and use it in GitHub Desktop.
CSS: Box Shadow Underneath
//Creates a box shadow effect underneath
The HTML
<div class="box effect1">
<h3>Effect 1</h3>
</div>
The CSS
.box h3{
text-align:center;
position:relative;
top:80px;
}
.box {
width:70%;
height:200px;
background:#FFF;
margin:40px auto;
}
/*==================================================
* Effect 1
* ===============================================*/
.effect1{
-webkit-box-shadow: 0 10px 6px -6px #777;
-moz-box-shadow: 0 10px 6px -6px #777;
box-shadow: 0 10px 6px -6px #777;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment