JSFiddle - React, Tailwind, and code Playground
by Abhay Singh
HTML
<div>
<div style="
">
<div class="xyz xcc" style="
width: calc(50% - 10px);
border: 1px solid #f00;
height: 100px;
border-bottom: none;
position: relative;
top: 1px;
background: #fff;
border-radius: 10px 20px 0 0;
float: left;
border:none;
">
23bytes
<span style="
position: absolute;
width: 24px;
height: 74px;
right: -7px;
background: #fff;
z-index: 99;
"></span>
</div>
<div class="xyz xvv rightactive" style="
width: 50% ;
border: 1px solid #f00;
height: 100px;
border-bottom: none;
position: relative;
top: 1px;
background: #fff;
border-radius: 10px 20px 0 0;
float: right;
">
23bytes
</div>
<div style="
width: calc(100% - 2px);
border: 1px solid #f00;
height: 50px;
padding-top:10px;
float:left;
">
<a href="javascript:;">Abhay</a>
<a href="javascript:;">Abhay</a>
<a href="javascript:;">Abhay</a>
</div>
</div>
</div>
CSS
.xyz:before {
content: '';
width: 100px;
height: 100px;
border: 1px solid #f00;
position: absolute;
right: -100px;
border-radius: 0 0 0 32px;
top: -1px;
border-top: none;
border-left: none;
border-right: none;
z-index: 1;
}
.xyz:after {
content: '';
position: absolute;
width: 50px;
height: 30px;
background: #fff;
right: -34px;
bottom: -3px;
}
a {
display:inline-block;
width:calc(100% / 3 - 3px);
text-align:center;
}
.xcc {
width:calc(50% - 10px);
}
.xcc:before, .xcc:after {
display:none;
}
.rightactive {
width:50%;
}
.rightactive:before {
right: auto;
border: 1px solid #f00;
border-radius: 0;
left: -50px;
top: 44px;
border-radius: 40px;
border-top: none;
border-left: none;
border-bottom: none;
height: 57px;
width: 50px;
}
.rightactive:after {
content: '';
position: absolute;
width: 50px;
height: 39px;
background: #fff;
right: auto;
left: -16px;
bottom: 0;
}