Created
May 29, 2012 15:24
-
-
Save g12n/2829042 to your computer and use it in GitHub Desktop.
stacked images
This file contains 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
/** | |
* stacked images | |
* compare: http://webdesignerwall.com/tutorials/css3-image-styles | |
* | |
*/ | |
.roundImage { | |
border-radius: 5px; | |
margin: 0 0 0 9px; | |
display:block; | |
float: left; | |
overflow: hidden; | |
position: relative; | |
box-shadow: 0 7px 5px -5px rgba(0,0,0,0.9); | |
} | |
.roundImage:after{ | |
content: " "; | |
position: absolute; | |
top:0;right:0; bottom:0;left:0; | |
border-radius: 5px; | |
box-shadow: | |
inset 0 2px 0px rgba(255,255,255,0.4), | |
inset 0 -1px 0px rgba(0,0,0,1), | |
inset 0 -2px 0px 0 rgba(255,255,255,1), | |
inset 0 -4px 0px rgba(0,0,0,1), | |
inset 0 -5px 0px 0 rgba(255,255,255,1), | |
inset 0 -7px 0px rgba(0,0,0,1), | |
inset 0 -8px 0px 0 rgba(255,255,255,1), | |
0 0 1px 10px #fff; | |
; | |
} | |
.roundImage img{vertical-align: bottom;} | |
This file contains 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="roundImage"> | |
<img src="http://lorempixel.com/80/80/animals/5/"/> | |
</div> | |
<div class="roundImage"> | |
<img src="http://lorempixel.com/80/80/animals/4/"/> | |
</div> | |
<div class="roundImage"> | |
<img src="http://lorempixel.com/80/80/animals/3/"/> | |
</div> | |
<div class="roundImage"> | |
<img src="http://lorempixel.com/80/80/animals/1/"/> | |
</div> |
This file contains 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","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