JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<div class="A">A</div>
<div class="B">B</div>
<div class="C">C</div>
</div>

CSS

.A {
  background: green;
}

.B {
  background: yellow;
  position: relative;
}

.C {
  background: red;
  position: absolute;
  top: 0;
  right: 0;
}

.container {
  position: relative;
}