JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
  <div class="box">1</div>
  <div class="box">2</div>
  <div class="box">3</div>
  <div class="box">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem facere in, dolorem corrupti eligendi error, fugiat voluptates asperiores qui iste.</div>
</div>

CSS

* {
  box-sizing: border-box;
}

body {
  font-size: 72px;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  display: flex;
  width: 600px;
  height: 400px;
  border: 1px solid green;
  overflow: scroll;
}

.box {
  height: 100%;
  border: 1px solid red;
  flex: 0 0 100%;  
}