fix
Rodrigo Kono
This webApp can help for developers who are not masters in CSS
Proceed(8)
Thanks for your like.
You've done it, haven't you?
{"sid":"ehs","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="pentagon"></div>
Copy to clipboard
CSS
LESS
SCSS
.pentagon {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 108px;
  position: relative;
  top: 131px;
  border: 36px solid rgba(0,0,0,0);
  border-top: 100px solid #1abc9c;
  border-bottom: 0 solid #1abc9c;
  font: normal 100%/normal Arial, Helvetica, sans-serif;
  color: rgba(0,0,0,1);
  -o-text-overflow: clip;
  text-overflow: clip;
  -webkit-transform: rotateX(-183.91945223699426deg) rotateY(4.583662361046586deg)   ;
  transform: rotateX(-183.91945223699426deg) rotateY(4.583662361046586deg)   ;
}

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