Skip to content

Instantly share code, notes, and snippets.

@chriscoyier
Created March 13, 2012 19:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save chriscoyier/2031169 to your computer and use it in GitHub Desktop.
Save chriscoyier/2031169 to your computer and use it in GitHub Desktop.
Untitled
body {
padding: 20px;
}
.triangle {
width: 0;
height: 0;
border-right: 100px solid black;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
margin: 10px;
}
.smooth {
transform: rotate(360deg);
}
<div class="triangle"></div>
<div class="triangle smooth"></div>
{"view":"split","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment