.card {
position: relative;
width: 30%;
height: 300px;
padding: 1em 1.5em;
margin: 2em auto;
color: #fff;
background: #97C02F;
}
.card:before {
content: "";
position: absolute;
top: 0;
right: 0;
border-width: 0 16px 16px 0;
border-style: solid;
border-color: #658E15 #fff;
}
Demo
You can play with the above and try using .card:afterfor the lower left and right corners.
source
share