JSFiddle - React, Tailwind, and code Playground
by Matt Hopkins
HTML
<div>
</div>
CSS
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
div {
background: darkred;
width: 200px;
height: 70px;
position: relative;
margin-top: 20px;
font-family: "Source Sans Pro", Helvetica, sans-serif !important
}
div:after {
content: '5% OFF';
display: block;
position: absolute;
top: -15px;
right: 0px;
line-height: 14px;
font-size: 14px;
padding-top:11px;
padding-bottom:11px;
color: #fff;
text-align: center;
font-weight: bold;
width: 50px;
height: auto;
min-height: 28px;
background: #30a05c;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
border-radius: 25px;
box-shadow: 0 0 0 2px #fefefe;
}