Created
December 7, 2012 14:49
-
-
Save BinaryMoon/4233712 to your computer and use it in GitHub Desktop.
Textured stitched CSS3 box - with a kitten
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
/** | |
* Textured stitched CSS3 box - with a kitten | |
*/ | |
.stitched { | |
display:block; | |
position:relative; | |
width:200px; | |
height:200px; | |
margin:20px; | |
background:url(http://placekitten.com/210/210/); | |
border-radius:10px; | |
padding:5px; | |
box-shadow:2px 2px 10px rgba(10,10,10,0.2); | |
color:#fff; | |
} | |
.stitched p { | |
line-height:1.3; | |
padding:5px 20px; | |
margin:0 0 10px 0; | |
font-size:15px; | |
} | |
.stitched:before { | |
display:block; | |
content:" "; | |
position:absolute; | |
width:196px; | |
height:196px; | |
border:2px dashed #fff; | |
border-radius:7px; | |
opacity:0.9; | |
} |
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="stitched"> | |
<p>This is some content that will appear in the box and wrap where required.</p> | |
<p>This is some content that will appear in the box and wrap where required.</p> | |
</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
// alert('Hello world!'); |
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-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