JSFiddle - React, Tailwind, and code Playground

HTML

<div class="first"></div>
<div class="second"></div>

CSS

div {
  width: 100px;
  height: 100px;
}

.first {
  background-color: blue;
  position: relative;
  left: 100px;
  right: 50px;
}

.second {
  background-color: yellow;
}