Created
January 27, 2014 21:31
-
-
Save exarcheia-web/8657763 to your computer and use it in GitHub Desktop.
Paper Stack with box shadow (unsuccessful)
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
| /** | |
| * Paper Stack with box shadow (unsuccessful) | |
| */ | |
| *, *:before, *:after { | |
| -webkit-box-sizing: border-box; | |
| } | |
| .paper { | |
| width: 280px; | |
| height: 300px; | |
| margin: 190px auto 0; | |
| background: white; | |
| position: relative; | |
| padding: 40px; | |
| box-shadow: 0 0 2px 0 red, | |
| 10px -20px 2px 0 #222, | |
| -10px 20px 2px 0 #888; | |
| } | |
| /* cosmetic stuff */ | |
| .paper p { | |
| font-family: Georgia, serif; | |
| font-style: italic; | |
| text-align: center; | |
| font-size: 2em; | |
| position: absolute; | |
| left: 50%; | |
| top: 40%; | |
| transform: translate(-50%, -50%); | |
| } |
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="paper"><p>This is a single div</p></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
| // alert('Hello world!'); |
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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment