JSFiddle - React, Tailwind, and code Playground
by cvalleskey
HTML
<div class="container">
<div class="callout">
<h2>Headline</h2>
<p>Lorem ipsum description copy.</p>
</h2><span class="btn">This is a button</span></div>
<div class="callout">
<h2>Headline</h2>
<p>Lorem ipsum description copy.</p>
<span class="btn">This is another button with much longer text</span></div>
</div>
CSS
body {
font: 16px/1.5 'Helvetica Neue', sans-serif;
}
.container {
max-width: 900px;
display: flex;
flex-wrap: wrap;
}
.callout {
flex: 1;
margin: 0.5em;
padding: 1em;
background: #EEE;
}
.btn {
min-height: 3em;
padding: 0.5em 1em;
background: #444;
color: #FFF;
text-align: center;
display: flex;
align-items: center;
cursor: pointer;
justify-content: center;
border-radius: 0.5em;
font-weight: bold;
}