JSFiddle - React, Tailwind, and code Playground
HTML
<div id="layers">
<div id="available">
<div class="graph">
<div class="graph-row" style="height:20%;">
<div class="graph-box red-grad" style="outline:1px solid #555;">
<div class="graph-col" style="width:40%;">
<h4>40%<br>Short</h4>
</div><div class="graph-col" style="width:20%;">
<h4>20%<br>This is a long one</h4>
</div><div class="graph-col" style="width:30%;">
<h4>30%<br>Short</h4>
</div><div class="graph-col" style="width:10%;">
<h4>10%<br>Short</h4>
</div>
</div><div class="graph-label">
<h3>$750,000</h3>
</div>
</div><div class="graph-row" style="height:27%;">
<div class="graph-box cyan-grad">
<div class="graph-col" style="width:20%;">
<h4>20%<br>Short</h4>
</div><div class="graph-col" style="width:40%;">
<h4>40%<br>Short</h4>
</div><div class="graph-col" style="width:15%;">
<h4>15%<br>Short</h4>
</div><div class="graph-col" style="width:10%;">
<h4>10%<br>Short</h4>
</div><div class="graph-col" style="width:15%;">
<h4>15%<br>Short</h4>
</div>
</div><div class="graph-label">
<h3>$1,000,000</h3>
</div>
</div><div class="graph-row" style="height:27%;">
<div class="graph-box yellow-grad">
<div class="graph-col" style="width:25%;">
<h4>25%<br>Short</h4>
</div><div class="graph-col" style="width:22%;">
<h4>22%<br>This is a long one</h4>
</div><div class="graph-col" style="width:18%;">
<h4>18%<br>Short</h4>
</div><div class="graph-col" style="width: 17%;">
<h4>17%<br>Short</h4>
</div><div class="graph-col" style="width:18%;">
<h4>18%<br>Short</h4>
</div>
</div><div class="graph-label">
<h3>$1,000,000</h3>
</div>
</div><div class="graph-row" style="height:14%;">
<div class="graph-box purple-grad">
<div class="graph-col" style="width:100%;">
<h4>100%<br>Short</h4>
</div>
</div><div class="graph-label">
<h3>$500,000</h3>
</div>
</div><div class="graph-row" style="height:12%;">
<div class="graph-box...
CSS
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.428571429;
color: #333333;
background-color: #ffffff;
}
#layers {
width: 1000px;
height: 400px;
margin: 0 auto;
}
#layer-headings {
width: 1000px;
margin: 0 auto;
}
#layer-headings h3 {
width: 50%;
text-align: center;
float: left;
font-size: 14px;
font-weight: bold;
margin-bottom: 50px;
}
#consumed {
width: 50%;
height: 100%;
outline: 1px solid #999;
display: inline-block;
margin: 0;
vertical-align: top;
}
#available {
width: 50%;
height: 100%;
display: inline-block;
margin: 0;
}
#layers h3 {
text-align: center;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 10px 0;
}
#layers .graph {
height: 100%;
width: 100%;
border-bottom: 1px solid #999;
}
#layers h4 {
font-size: 12px;
text-align: center;
}
#layers .graph-box {
margin-left: 5%;
width: 75%;
height: 100%;
float: left;
outline: 1px solid #555;
}
#layers .graph-box h4 {
font-weight: bold;
display: block;
margin: 0 auto;
}
#layers .graph-label {
margin-right: 5%;
padding-left: 10px;
width: 15%;
height: 100%;
vertical-align: top;
display: flex;
align-items: center;
}
#layers .graph-label h3 {
margin: 0;
padding: 0;
}
#layers .graph-col {
height: 100%;
display: inline-flex;
align-items: center;
outline: 1px solid #555;
}
#layers .graph-label.pdf {
display: inline-block;
}
#layers .graph-col.pdf {
display: inline-block;
}
.blue-grad {
background: #3085dd;
/* Old browsers */
background: -moz-linear-gradient(left, #3085dd 0%, #60abf8 50%, #3085dd 100%);
/* FF3.6-15 */
background: -webkit-gradient(linear, left top, right top, from(#3085dd), color-stop(0.5, #60abf8), to(#3085dd));
/* Safari 4-5, Chrome 1-9 */
background: -webkit-linear-gradient(left, #3085dd 0%, #60abf8 50%, #3085dd 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to right, #3085dd...