JSFiddle - React, Tailwind, and code Playground
by Alex
HTML
<div class="my-flex-container">
<div class="my-flex-block">item1</div>
<div class="my-flex-block">item2</div>
<div class="my-flex-block">item3</div>
</div>
CSS
html, body {
display: flex;
flex-direction: column;
}
html {
background: #578;
min-height: 100%;
}
body {
flex-grow: 1;
justify-content: center;
margin: 0;
}
.my-flex-container {
background: #569;
}