JSFiddle - React, Tailwind, and code Playground

by nathanlogan

HTML

<div class="container">
  CSS3 top arrow
</div>

CSS

body {
  padding: 20px;
}

.container {
  position: relative;
  display: inline-block;
  margin-left: 15px;
  background: #fff;
  border: 1px solid #CAD5E0;
  padding: 15px;
}
.container:before {
  content: '';
  position: absolute;
  display: block;
  top: -11px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #CAD5E0;
  border-color: #CAD5E0 transparent transparent #CAD5E0;
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}