Skip to content

Instantly share code, notes, and snippets.

@ms-studio
Last active March 1, 2016 23:19
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 ms-studio/00a4d4b25c5cccdeba21 to your computer and use it in GitHub Desktop.
Save ms-studio/00a4d4b25c5cccdeba21 to your computer and use it in GitHub Desktop.
Triangle CSS
/**
* Triangle CSS
* Source: http://appendto.com/2013/03/pure-css-triangles-explained/
*/
.triangle {
width: 0;
height: 0;
border-bottom: 116px solid blue;
border-left: 58px solid transparent;
border-right: 58px solid transparent;
}
<body>
<div class="triangle"></div>
</body>
// alert('Hello world!');
{"view":"split-vertical","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