To achieve the desired effect, try experimenting with the border-radius values of the div elements using a technique similar to the one described in this ::before method.
Check out the outcome of the code provided below by clicking on this link: Here is the result of the below code
<div class="container">
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</div>
.container {
display: flex;
}
.container div {
height: 260px;
width: 50px;
}
.center {
position: relative;
top: 10px;
background-color: black;
width: 55px !important;
height: 250px !important;
}
.left::before {
display: block;
position: relative;
content: "";
width: 100%;
height: 100%;
background-color: black;
border-radius: 0.8em 0.8em 0 0.8em;
}
.center::before {
display: block;
position: relative;
content: "";
width: 100%;
height: 10%;
background-color: white;
border-radius: 0 0 40em 40em;
}
.right::before {
display: block;
position: relative;
content: "";
width: 100%;
height: 100%;
background-color: black;
border-radius: 0.8em 0.8em 0.8em 0;
}