JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

HTML

<div class="haha">
  halo
</div>
Coba jalanin ded

CSS

body {
  background: white;
}

.haha{
  background: brown;
  -webkit-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
  color: white;
  display: inline-block;
  height: 26px;
  line-height: 26px;
  padding: 0 20px 0 23px;
  position: relative;
  margin: 0 8px 8px 0;
}

.haha::before{
  background: white;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 1px rgba(0,0,0,0.25);
  box-shadow: inset 0 1px rgba(0,0,0,0.25);
  content: ''; // Kalo before/after, jangan lupa sama ini
  height: 6px;
  left: 10px;
  position: absolute;
  width: 6px;
  top: 10px;
}

.haha::after{
  background: white;
  border-bottom: 13px solid transparent;
  border-left: 10px solid brown;
  border-top: 13px solid transparent;
  content: ''; // Kalo before/after, jangan lupa sama ini
  position: absolute;
  right: 0;
  top: 0;
}

JavaScript

okeee we, istimewaaa, okeee gw coba d lokal,
di after rgba nya ganti brown mgkn yaa,
wooow  istimendool
haha okeey thank you we
nah itu udah ded, cek dah..

konten wajib yaa we d before after? okeee okee hahaa