Skip to content

Instantly share code, notes, and snippets.

@JosephSilber
Created February 22, 2012 18:03
Show Gist options
  • Save JosephSilber/1886343 to your computer and use it in GitHub Desktop.
Save JosephSilber/1886343 to your computer and use it in GitHub Desktop.
CSS diamond without transforms
/* CSS diamond without transforms */
#diamond {
width: 0;
height: 0;
border: 50px solid transparent;
border-bottom-color: red;
position: relative;
}
#diamond:after {
content: ' ';
position: absolute;
left: -50px; top: 50px;
width: 0;
height: 0;
border: 50px solid transparent;
border-top-color: red;
}
<p id="diamond"></p>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment