Skip to content

Instantly share code, notes, and snippets.

@Shpigford
Created June 18, 2012 13:31
Show Gist options
  • Save Shpigford/2948390 to your computer and use it in GitHub Desktop.
Save Shpigford/2948390 to your computer and use it in GitHub Desktop.
z-index issue
/* z-index issue */
.img {
background:#fff;
z-index:10;
position:relative;
width:500px;
height:344px;
border:1px solid black;
padding:10px;
}
.img:after {
content:'';
z-index:0;
position:absolute;
bottom:-5px;
left:10px;
width:50%;
height:20%;
-webkit-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
-moz-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
}
<div class="img"><img src="http://lorempixel.com/500/344"></div>
{"view":"split-vertical","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