JSFiddle - React, Tailwind, and code Playground

by belanwork

HTML

<body>
  <div class="wrapper">
    <div id="first"></div>
    <div id="gap"></div>
    <div id="second"></div>
    <div id="third"></div>
  </div>  
</body>

CSS

* {
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  display: flex;
  width: 500px;
  height: 100px;
  border: 5px black solid;
}

.wrapper > * {
  width: 100px;
}

#gap {
  flex-grow: 1;
}

#first {
  background-color: red;
}

#second {
  background-color: dodgerBlue;
}

#third {
  background-color: green;
}