JSFiddle - React, Tailwind, and code Playground
HTML
<div class="steps-frame-1">
<div class="borderColour borderTopLeft"></div>
<div class="borderColour borderTopRight"></div>
<div class="borderColour borderRightTop"></div>
<div class="borderColour borderRightBottom"></div>
<div class="borderColour borderLeftTop"></div>
<div class="borderColour borderLeftBottom"></div>
<div class="borderColour borderBottom"></div>
<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>
<!-- inner -->
</div>
CSS
body {
background: black;
}
p {
color: #ffffff;
font-size: 16px;
text-align:center;
padding:30px;
}
.steps-frame-1 {
position: relative;
margin-top: 60px;
width: 50%;
height: 200px;
margin-left:auto;
margin-right:auto;
}
.borderColour {
background-color: #fff;
}
.borderTopLeft {
position: absolute;
top:0;
left: 0;
width: 10%;
height:2px;
}
.borderTopRight {
position: absolute;
top:0;
right: 0;
width: 80%;
height:2px;
}
.borderRightTop {
position: absolute;
top:0;
right: 0;
width: 80%;
height:2px;
}
.borderRightTop {
position: absolute;
top:0;
right: 0;
width: 2px;
height: 45%;
}
.borderRightBottom {
position: absolute;
bottom:0;
right: 0;
width: 2px;
height:45%;
}
.borderLeftTop {
position: absolute;
top:0;
left: 0;
width: 2px;
height: 45%;
}
.borderLeftBottom {
position: absolute;
bottom:0;
left: 0;
width: 2px;
height:45%;
}
.borderBottom {
position: absolute;
bottom:0;
left: 0;
width: 100%;
height:2px;
}