Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created December 7, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinaryMoon/4233712 to your computer and use it in GitHub Desktop.
Save BinaryMoon/4233712 to your computer and use it in GitHub Desktop.
Textured stitched CSS3 box - with a kitten
/**
* 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;
}
<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>
// alert('Hello world!');
{"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