JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div class="main">
<div class="choices-wrap">
<div class="choices">
<a class="choice" href="#">Item</a>
<a class="choice" href="#">A bigger item</a>
<a class="choice" href="#">Item</a>
<a class="choice" href="#">An even bigger item still</a>
<a class="choice" href="#">Item</a>
<a class="choice" href="#">A bigger item</a>
<a class="choice" href="#">Item</a>
<a class="choice" href="#">An even bigger item still</a>
<a class="choice" href="#">Item</a>
<a class="choice" href="#">A bigger item</a>
<a class="choice" href="#">Item</a>
<a class="choice" href="#">An even bigger item still</a>
</div>
</div>
</div>
</body>
CSS
*, *:before, *:after {
box-sizing: border-box;
}
html body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 16px;
line-height: 22px;
margin: 0;
}
html body .main .choices-wrap {
background: none repeat scroll 0 0 #ccc;
display: block;
height: 250px;
padding: 10px;
}
html body .main .choices-wrap .choices {
align-content: flex-start;
background: none repeat scroll 0 0 #aaa;
display: flex;
flex-flow: row wrap;
height: 230px;
}
html body .main .choices-wrap .choices .choice {
background: none repeat scroll 0 0 #555;
border: 1px solid #000;
color: #ffffff;
display: block;
flex-grow: 1;
height: 66.6667px;
line-height: 66.6667px;
margin-left: 10px;
margin-top: 10px;
padding: 0 10px;
text-align: center;
text-decoration: none;
}