JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
  <div class="float-right"></div>
  <div class="clear"></div>
  <div class="margin"></div>
  <div class="float-left"></div>
</div>

CSS

.container {
  height: 500px;
  width: 50%;
  margin-left: 25%;
  background-color: gray;
  position: relative;
}

.float-right {
  width: 110%;
  float: right;
  height: calc(100% / 3);
  background-color: rgba(255, 0, 0, .5);
}

.margin {
  width: 110%;
  height: calc(100% / 3);
  margin-left: -10%;
  background-color: rgba(0, 255, 0, .5);
}

.float-left {
  width: 110%;
  position: relative;
  left: -10%;
  bottom: 0px;
  height: calc(100% / 3);
  background-color: rgba(0, 0, 255, .5);
}

.clear::after {
  display: block;
  content: "";
  clear: both;
}