I am hoping to create a box like this:
using the following CSS rules but I am getting this:
.box {
width: 50px;
color: #303030;
background: #FFF;
border: 2px solid #56B665;
padding: 8px 3px 9px;
text-align: center;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.box::after {
content: "";
border-color: #FFF transparent;
border-style: solid;
border-width: 0 7px 7px;
margin-top: -5px;
width: 1px;
margin-left: auto;
margin-right: auto;
display: block;
position: relative;
}
.box::before {
content: "";
border-color: #56B665 transparent;
border-style: solid;
border-width: 0 8px 8px;
width: 1px;
margin-left: auto;
margin-right: auto;
display: block;
position: relative;
}
<div class="container" style="padding:20px">
<div class="box">100</div>
</div>
How can I fix this?