JSFiddle - React, Tailwind, and code Playground
by Alex
HTML
<div class="node" style="width: 20px; height: 20px; top: 50px; left: 50px;">
<h4>Node A</h4>
</div>
<div class="node" style="width: 20px; height: 20px; top: 50px; left: 150px;">
<h4>Node B</h4>
</div>
<div class="node" style="width: 20px; height: 20px; top: 50px; left: 300px;">
<h4>Node C</h4>
</div>
<div class="segment" style=" top: 58px; left: 50px;"></div>
CSS
html {
font-family:Arial;
}
.node {
-webkit-border-radius: 48px;
-moz-border-radius: 48px;
border-radius: 48px;
background: #067195;
border: 1px solid #FFF;
box-shadow: 0 0 5px #888;
position: absolute;
top: 0;
left: 0;
z-index: 2;
}
.node h4 {
color: #067195;
text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
margin: 0;
padding: 0;
position: absolute;
width: 56px;
left: 20px;
bottom: -20px;
font-size: 11px;
}
.node:hover {
cursor: pointer;
background-color:red;
}
.segment {
width:100%;
height: 5px;
position: absolute;
top: 0;
left: 0;
background: #bae4b3;
z-index: 1;
border: 1px solid white;
}