JSFiddle - React, Tailwind, and code Playground
by Noah Wetjen
HTML
<div class="container">
<div class="inner">
<section id="left-area" style="background: red;">
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
</section>
<section id="right-area" style="background: blue;">
<p>Paragraph</p>
</section>
</div>
</div>
CSS
body {
text-align: center;
margin: 0;
}
.container {
margin: 0 auto;
text-align: left;
width: 300px;
}
.container .inner {
width: 100%;
height: 100%;
display: table-row;
font-size: 0; /* Remove this to see the Problem */
}
.container .inner section#left-area, .container .inner section#right-area {
width: 150px;
min-height: 100px;
display: inline-block;
vertical-align: top;
}