JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrap">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</div>
CSS
* {
box-sizing: inherit;
}
html {
box-sizing: border-box;
}
body {
margin: 0;
}
.wrap {
position: relative;
display: flex;
justify-content: space-between;
width: 90%;
margin-left: auto;
margin-right: auto;
}
.wrap::after {
content: "";
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 100%;
height: 3px;
background: #777;
z-index: -1;
}
.item {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border: 2px solid #777;
border-radius: 50%;
background: #eee;
}