JSFiddle - React, Tailwind, and code Playground
by Gaurav Singh
HTML
<div class="steps-frame-1">
<div class="inner">
<p>content Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy.</p>
<div class="one">text</div>
<div class="two">text</div>
<div class="three">text</div>
<div class="four">text</div>
</div>
<!-- inner -->
</div>
CSS
body {
background: black;
}
p {
color: #ffffff;
font-size: 16px;
text-align:center;
padding:30px;
}
.steps-frame-1 {
margin-top: 60px;
width: 50%;
height: 200px;
margin-left:auto;
margin-right:auto;
}
.inner {
position: relative;
border: 2px solid #fff;
}
.inner div {
position: absolute;
height: 30px;
line-height: 30px;
width: 50px;
background: #000;
color: #fff;
}
.one {
top: 0;
bottom: 0;
margin: auto;
left: -25px;
width: 50px;
text-align: center;
}
.two {
top: 0;
bottom: 0;
margin: auto;
right: -25px;
width: 50px;
text-align: center;
}
.three {
top: -15px;
margin: auto;
left: 25px;
width: 50px;
text-align: center;
}
.four {
bottom: -15px;
margin: auto;
right: 25px;
width: 50px;
text-align: center;
}