JSFiddle - React, Tailwind, and code Playground
HTML
<div class="columns">
<ul class="price">
<li class="header">Agfhgfh</li>
<li class="grey">s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
</ul>
</div>
<div class="columns">
<ul class="price">
<li class="header">Agfhgfh</li>
<li class="grey">s wwwfwef fwef wfwwfwefwefefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef wfwefwef wfwefwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwwfwefwefef wfwefwef</li>
</ul>
</div>
<div class="columns">
<ul class="price">
<li class="header">Agfhgfh</li>
<li class="grey">s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwfwefwef wefwef</li>
<li>s wwwfwef fwef wfwwfwefwef wfwefwef efwef</li>
<li>s wwwfwef fwef wfwefwef</li>
<li>s wwwfwef fwef wfwewfwefwef fwef</li>
</ul>
</div>
CSS
* {
box-sizing: border-box;
}
/* Create three columns of equal width */
.columns {
float: left;
width: 33.3%;
padding: 8px;
display: table;
}
/* Style the list */
.price {
list-style-type: none;
border: 1px solid #eee;
margin: 0;
padding: 0;
-webkit-transition: 0.3s;
transition: 0.3s;
display: table-row;
}
/* Add shadows on hover */
.price:hover {
box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2)
}
/* Pricing header */
.price .header {
background-color: #111;
color: white;
font-size: 25px;
}
/* List items */
.price li {
border-bottom: 1px solid #eee;
padding: 20px;
text-align: center;
display: table-cell;
}
/* Grey list item */
.price .grey {
background-color: #eee;
font-size: 20px;
}
/* The "Sign Up" button */
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 25px;
text-align: center;
text-decoration: none;
font-size: 18px;
}
/* Change the width of the three columns to 100%
(to stack horizontally on small screens) */
@media only screen and (max-width: 600px) {
.columns {
width: 100%;
}
}