JSFiddle - React, Tailwind, and code Playground

by Graham Dixon

HTML

<div class="container">
    <div class="left"></div>
    <div class="right">
        <div class="rightBox">
            <span class="background"> </span>
        </div>
        <div class="rightBox">
            <span class="background"> </span>
        </div>
        <div class="rightBox">
            <span class="background"> </span>
        </div>
    </div>
</div>

CSS

*, *:before, *:after {
  box-sizing: border-box;
}

body {
    height:100vh;
    margin:0px;
}

.container {
    padding:20px;
    border:1px solid #000;
    height:100%;
}

.left, .right {
    height: 100%;
    width: calc(50% - 20px);
    background-color: grey;
    border: 1px solid #000;
    float:left;
    margin-left:10px;
    margin-right:10px;
}

.right .rightBox {
    width: 100%;
    height: 33.33333%;
    padding: 20px;
    // border-bottom:1px solid #000;
}

.right .rightBox:last-of-type {
    border-bottom: 0px;
}

.right .rightBox .background {
    background-color: green;
    border:1px solid #000;
    display:block;
    width: 100%;
    height: 100%;
}