Skip to content

Instantly share code, notes, and snippets.

@jackarmley
Created February 26, 2013 07:53
Show Gist options
  • Save jackarmley/5036765 to your computer and use it in GitHub Desktop.
Save jackarmley/5036765 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
*/
.corner{
position:relative;
width:40px;
height:40px;
background:red;
overflow:hidden;
}
.corner:after{
content:" ";
display:block;
position:absolute;
top:12px;
left:12px;
width:55px;
height:55px;
background:yellow;
-webkit-transform:rotate(45deg);
}
<!-- content to be placed inside <body></body> -->
<div class="corner"></div>
// alert('Hello world!');
{"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