Created
June 21, 2013 00:24
-
-
Save digitalnature/5827959 to your computer and use it in GitHub Desktop.
box thing
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
/* box thing */ | |
div{ | |
width:300px; | |
height:180px; | |
margin: 50px auto; | |
position:relative; | |
background: #fff; | |
box-shadow: 0px 0px 30px rgba(0,0,0, 0.25); | |
border-radius: 3px; | |
} | |
div::before{ | |
content: ''; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
z-index: -1; | |
top: -15px; | |
right: -15px; | |
padding: 15px; | |
background-image: | |
linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee), | |
linear-gradient(-45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee); | |
background-size:30px 30px; | |
background-position: 15px 15px; | |
} |
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 /> |
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","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