Skip to content

Instantly share code, notes, and snippets.

@vitrum
Forked from anonymous/index.html
Created April 23, 2014 09:44
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 vitrum/11208936 to your computer and use it in GitHub Desktop.
Save vitrum/11208936 to your computer and use it in GitHub Desktop.
div {
width: 100px;
height: 100px;
border: 1px solid red;
outline: 1px solid red;
outline-offset: 5px;
margin: 100px;
position: relative;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
div:before {
content:"";
width: 130px;
height: 200px;
display:block;
background: #fff;
transform:translate(-10px,-25px) rotate(45deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment