fix
Joan Leon
There is no longer any excuse for not playing with #css3 http://enjoycss.com/
Proceed(9)
Thanks for your like.
You've done it, haven't you?
{"sid":"yCg","rid":0,"page":"code","page_params":[],"username":""}
Skip
Next

We'll add only required prefixes
for browsers you gonna choose,
based on data from caniuse.com
4+
4+
9+
10.5+
4+
5.0+
2.1+
7+
Hide default rules
Copy to clipboard
HTML
<div class="diamond"></div>
Copy to clipboard
CSS
LESS
SCSS
.diamond {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 50px;
  height: 0;
  position: relative;
  margin: 20px 0 50px;
  border: 25px solid rgba(0,0,0,0);
  border-top-width: 0;
  border-bottom-color: #1abc9c;
  font: normal 100%/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  -o-text-overflow: clip;
  text-overflow: clip;
}

.diamond::after {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 0;
  height: 0;
  position: absolute;
  content: "";
  top: 25px;
  left: -25px;
  border: 50px solid rgba(0,0,0,0);
  border-top: 70px solid #1abc9c;
  border-bottom-width: 0;
  font: normal 100%/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  -o-text-overflow: clip;
  text-overflow: clip;
  text-shadow: none;
}