Skip to content

Instantly share code, notes, and snippets.

@ezos86
Created August 26, 2013 07:51
Show Gist options
  • Save ezos86/6338981 to your computer and use it in GitHub Desktop.
Save ezos86/6338981 to your computer and use it in GitHub Desktop.
Corner Up Shadow Technique - CSS
<div class="effect3" style="margin:20px;">
<img class="effect3" src="http://0777.ir/img/lndl.png"
original-src="http://pearlsquirrel.com/profilethumbnails/$thumbnail"
width="180" height="180" alt="PearlSquirrel"/>
</div>
.effect3
{
position: relative;
}
.effect3:before
{
z-index: -1;
position: absolute;
content: "";
bottom: 15px;
left: 10px;
width: 50%;
top: 80%;
max-width:155px;
max-height:18px;
background: #777;
-webkit-box-shadow: 0 15px 10px #777;
-moz-box-shadow: 0 15px 10px #777;
box-shadow: 0 15px 10px #777;
-webkit-transform: rotate(-4deg);
-moz-transform: rotate(-4deg);
-o-transform: rotate(-4deg);
-ms-transform: rotate(-4deg);
transform: rotate(-4deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment