Created
March 12, 2012 17:11
-
-
Save schadeck/2023410 to your computer and use it in GitHub Desktop.
Design Shack - image stack w/ pseudo elements - basic
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
| /** | |
| * Design Shack - image stack w/ pseudo elements - basic | |
| */ | |
| * { margin: 0; padding: 0; } | |
| body {background: #ccd3d7;} | |
| .stackone { | |
| border: 6px solid #fff; | |
| float: left; | |
| height: 200px; width: 200px; | |
| margin: 50px; | |
| position: relative; | |
| -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| } | |
| .stackone:before { | |
| content: ""; | |
| height: 200px; width: 200px; | |
| background: #eff4de; | |
| border: 6px solid #fff; | |
| position: absolute; | |
| z-index: -1; | |
| top: 0px; | |
| left: -10px; | |
| -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| -webkit-transform: rotate(-5deg); | |
| -moz-transform: rotate(-5deg); | |
| -o-transform: rotate(-5deg); | |
| -ms-transform: rotate(-5deg); | |
| transform: rotate(-5deg); | |
| } | |
| .stackone:after { | |
| content: ""; | |
| height: 200px; width: 200px; | |
| background: #768590; | |
| border: 6px solid #fff; | |
| position: absolute; | |
| z-index: -1; | |
| top: 5px; | |
| left: 0px; | |
| -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| box-shadow: 2px 2px 5px rgba(0,0,0,0.3); | |
| -webkit-transform: rotate(4deg); | |
| -moz-transform: rotate(4deg); | |
| -o-transform: rotate(4deg); | |
| -ms-transform: rotate(4deg); | |
| transform: rotate(4deg); | |
| } | |
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
| <!-- content to be placed inside <body>…</body> --> | |
| <div class='stackone'> | |
| <img src="http://lorempixum.com/200/200/city/7" /> | |
| </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","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment