Skip to content

Instantly share code, notes, and snippets.

View mismith's full-sized avatar

Murray Rowan mismith

View GitHub Profile
@mismith
mismith / dabblet.css
Created January 22, 2013 00:11
How to make 3-corner-rounded triangle in CSS (SO)
/**
* How to make 3-corner-rounded triangle in CSS (SO)
* http://stackoverflow.com/q/14446677/1397351
*/
.triangle, .triangle:before, .triangle:after {
width: 20em; height: 20em;
border-radius: 20%;
}
.triangle {
overflow: hidden;
@mismith
mismith / dabblet.css
Created January 21, 2013 23:54
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.triangle, .triangle:before, .triangle:after {
width: 4em; height: 4em;
border-radius: 20%;
}
.triangle {
overflow: hidden;
position: relative;