JSFiddle - React, Tailwind, and code Playground

by IllusionMH

HTML

<div id="content">
</div>
<div id="wrapper">
    <div id="inner1">
        <div id="d1"></div>
    </div>
    <div id="inner2">
        <div id="d2"></div>
    </div>
</div>

CSS

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100%;
}
#content {
    height: 600px;
    width: 400px;
    margin: 0 auto;
    background: gray;
}
#wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}
#inner1,
#inner2 {
    width: 50%;
    height: 100%;
    float: left;
    position: relative;
}
#inner2 {
    direction: rtl;
}
#d1, #d2 {
    max-width: 400px;
    height: 200px;
    position: absolute;
    background: red url(//placekitten.com/400/200) 0 0;
    right: 0px;
    left: 200px;
}
#d1 {
    background: red url(//placekitten.com/400/300) 100% 0;
    right: 200px;
    left: 0;
}
}