JSFiddle - React, Tailwind, and code Playground

HTML

<!-- MAIN CONTAINER: Orange -->
<div style="height: 100%; width:550px;position: relative; background-color:#ffcc00; padding: 5px 0;">

  <!-- INNER CONTAINER #1: Gray -->
  <div style="display: inline-block; width:180px; margin:0 5px; vertical-align: top; height: 100%;">

    <!-- TOP BLOCK -->
      <div style="position: absolute; top: 5px; background: pink;">This block goes top!<br/>line 2 <br/>line 3</div>
      <!-- INVISIBLE TOP BLOCK TO CALCULATE HEIGHT-->
<div style="visibility: hidden; background: none;">This block goes top!<br/>line 2 <br/>line 3</div>
    <!-- BOTTOM BLOCK -->
    <div style="position: absolute; bottom: 5px;background: gray;">This block goes bottom!</div>
      <!-- INVISIBLE BOTTOM BLOCK TO CALCULATE HEIGHT-->
      <div style="visibility: hidden;">This block goes bottom!</div>

  </div>

  <!-- INNER CONTAINER #2: Red -->
    <div style="height: 100%; display: inline-block; width:250px; margin:0 5px; background-color:#ff0000">Not that important block<br />with some content.<br/>...<br/>...<br/>...<br/>...</div>

</div>