JSFiddle - React, Tailwind, and code Playground

by Konstantin Rouda

HTML

<div class="container">
  <div class="child">Child 1</div>
  <div class="child">Child 2</div>
  <div class="child">Child 3</div>
</div>

CSS

BODY, HTML {
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: column;
  width: 500px;
  height: 500px;
  border: 1px solid cornflowerblue;
}

.child {
  width: 300px;
  height: 150px;
  margin: 10px;
  background: firebrick;
}


.child:first-child {
  margin-bottom: 15px;
  background: crimson;
}