JSFiddle - React, Tailwind, and code Playground

by Lucas Silva

HTML

<div class="container">
  <div class="red block">
    <h1>VDC</h1>
  </div>
  <div class="blue block">
    <h1>VDC</h1>
  </div>
  <div class="green block">
    <h1>VDC</h1>
  </div>
  <div class="black block">
    <h1>VDC</h1>
  </div>
</div>

CSS

html, body {
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.block {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 10px;
}

.red {
  background-color: red;
}

.blue {
  background-color: blue;
}

.green {
  background-color: green;
}

.black {
  background-color: black;
}