JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<a href="#" class="panel panel-project">
<div class="circle">
<img alt="logo Unielabel" src="http://lorempixel.com/g/400/200">
</div>
<div class="panel-heading">
<h3 class="panel-title">test</h3>
</div>
<div class="panel-body">
<div class="graph" id="graph1" data-url="/api/locationdata/location-total-graph/1"></div>
<p class="usage getValueWatt" data-url="/api/locationdata/location-total/1"><i class="fa fa-circle-o-notch fa-spin"></i></p>
</div>
<p class="log-msg"></p>
</a>
<a href="#" class="panel panel-project">
<div class="circle">
<img alt="logo Unielabel" src="http://lorempixel.com/g/400/200">
</div>
<div class="panel-heading">
<h3 class="panel-title">test</h3>
</div>
<div class="panel-body">
<div class="graph" id="graph1" data-url="/api/locationdata/location-total-graph/1"></div>
<p class="usage getValueWatt" data-url="/api/locationdata/location-total/1"><i class="fa fa-circle-o-notch fa-spin"></i></p>
</div>
<p class="log-msg"></p>
</a>
CSS
a {
float: left;
width: 150px;
background: #ccc;
margin: 10px;
}
.circle {
width: 100px;
height: 100px;
display: block;
margin: 0 auto;
position: relative;
top: 0px;
overflow: hidden;
margin-top: -30px;
border-radius: 100%;
border: 3px solid #bcbf00;
}
.circle img {
height: 100%;
position: absolute;
top: -9999px;
left: -9999px;
bottom: -9999px;
right: -9999px;
margin: auto;
}
p {
width: 100%;
text-align: center;
}