JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<div class=top>Top</div>
<div class=middle>Middle</div>
<div class=bottom>Bottom</div>
</div>

CSS

body, html {
  height: 100%;
  margin: 0;
}

table {
  width: 100%;
  height: 100%;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container div {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 1px;
}

.top {
  background: lightgreen;
}

.middle {
  background: yellow;
}

.bottom {
  background: lightblue;
}