Skip to content

Instantly share code, notes, and snippets.

@MadeMyDay
Forked from anonymous/dabblet.css
Created January 29, 2013 15:57
Show Gist options
  • Save MadeMyDay/4665299 to your computer and use it in GitHub Desktop.
Save MadeMyDay/4665299 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
*
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body{
background: green}
.paper {
width: 300px;
height: 400px;
background: #fff;
border-right: 50px solid #fff;
position: relative;
}
.paper:after{
content: "";
position: absolute;
height: 50px;
width: 250px;
bottom: -50px;
left: 0;
display: block;
background: #fff;
}
.paper:before{
content: "";
position: absolute;
bottom: -50px;
right: -50px;
width: 0px;
height: 0px;
border-top: 50px solid #bbb;
border-right: 50px solid transparent;
}
<!-- content to be placed inside <body>…</body> -->
<div class="paper">
</div>
// alert('Hello world!');
{"view":"split","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