Created
June 18, 2012 13:34
-
-
Save Shpigford/2948402 to your computer and use it in GitHub Desktop.
z-index issue
This file contains hidden or 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
/* z-index issue */ | |
.img { | |
background:#fff; | |
position:relative; | |
width:500px; | |
height:344px; | |
border:1px solid black; | |
padding:10px; | |
} | |
.img:after { | |
content:''; | |
z-index:-1; | |
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); | |
} |
This file contains hidden or 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
<div class="img"><img src="http://lorempixel.com/500/344"></div> |
This file contains hidden or 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-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