JSFiddle - React, Tailwind, and code Playground
HTML
<section class="container">
<div class="left-half">
<article>
<h1>Left Half</h1>
<p>Weekends don't count unless you spend them doing something completely pointless.</p>
</article>
</div>
<div class="right-half">
<article>
<h1>Right Half</h1>
<p>If your knees aren't green by the end of the day, you ought to seriously re-examine your life.</p>
</article>
</div>
</section>
CSS
/* Pen-specific styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-size: 1.25rem;
font-family: sans-serif;
line-height: 150%;
text-shadow: 0 2px 2px #b6701e;
}
section {
color: #fff;
text-align: center;
}
div {
height: 100%;
}
article {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
padding: 20px;
}
h1 {
font-size: 1.75rem;
margin: 0 0 0.75rem 0;
}
/* Pattern styles */
.container {
display: table;
width: 100%;
}
.left-half {
background-color: #ff9e2c;
position: absolute;
left: 0px;
width: 50%;
}
.right-half {
background-color: #b6701e;
position: absolute;
right: 0px;
width: 50%;
}