JSFiddle - React, Tailwind, and code Playground
HTML
<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>
CSS
/* Pen-specific styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body, div {
height: 100%;
}
body {
color: #fff;
font-family: sans-serif;
font-size: 1.25rem;
line-height: 150%;
text-shadow: 0 2px 2px #b6701e;
}
article {
position: relative;
top: 50%;
left: 50%;
text-align: center;
transform: translate(-50%, -50%);
}
h1 {
font-size: 1.75rem;
margin: 0 0 0.75rem 0;
}
/* Pattern styles */
div {
width: 50%;
padding: 1rem;
float: left;
display: inline-block;
vertical-align: top;
}
.left-half {
background: #ff9e2c;
}
.right-half {
background: #b6701e;
}