JSFiddle - React, Tailwind, and code Playground

by Suryar Praveen

HTML

<div class="wrapper">
  <div class="box1"><span class="big-font">1</span></div>
  <div class="box2"><span class="big-font">2</span></div>
  <div class="box3"><span class="big-font">3</span></div>
  <div class="box4"><span class="big-font">4</span></div>
  <div class="box5"><span class="big-font">5</span></div>
  <div class="box6"><span class="big-font">6</span></div>
  </div

CSS

.wrapper {
  width: 250px;
  float: left;
  height: auto;
  border: 1px solid #5694cf;
}

.big-font {
  font-size: 40px;
  color: #ffffff;
  font-weight: bold;
  font-family: verdana;
}

.box1 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 150px;
  line-height: 150px;
  float: left;
  display: table;
}

.box2 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 50px;
  float: right;
  display: table-cell;
}

.box3 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 150px;
  line-height: 150px;
  float: right;
  display: table-cell;
}

.box4 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 100px;
  line-height: 100px;
  float: left;
  display: table;
}

.box5 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 50px;
  float: right;
  display: table-cell;
}

.box6 {
  min-width: 100px;
  border: 1px solid #000;
  background: #5694cf;
  text-align: center;
  margin: 10px;
  height: 100px;
  line-height: 100px;
  float: left;
  display: table-cell;
}