JSFiddle - React, Tailwind, and code Playground

HTML

<div class="row">
    <div class="item">
        <div class="title">
            <h1>Title 1</h1>
        </div>
        <div class="content">
            <p>Here is some content</p>
        </div>
    </div>
    <div class="item">
        <div class="title">
            <h1>Title 2</h1>
        </div>
        <div class="content">
            <p>Here is some content</p>
            <p>Here is additional content</p>
        </div>
    </div>
</div>

CSS

.row {
    border: 1px solid red;
}

.item {
    background: rgba(0,0,0,0.1);
    display: inline-block;
}

.title, .content {
    border: 1px solid rgba(0,0,0,0.2);
}

.title {
    background-color: rgba(0,0,0,0.1);
}