i want to round the border of element and move up the right element is here my code and i want to make this like showing in image, i have made the borders right rounded but i can not round left border and i have used pseudo class for rounding the left borders
div {
position: relative;
text-align: center;
width: 150px;
color: #256060;
margin: auto;
}
p {
position: relative;
margin: 0;
}
p:first-child {
border-top: solid #256060;
}
p:last-child {
border-bottom: solid #256060;
}
p:nth-child(odd) {
border-top: solid #256060;
border-bottom: solid #256060;
border-right: solid #256060;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
p:nth-child(even) {}
p:nth-child(even):before {
content: '';
position: absolute;
border-left: solid;
left: -15%;
bottom: 0;
top: 0;
border-top: solid;
border-bottom: solid;
border-top-left-radius: 25px;
border-bottom-left-radius: 25px;
width: 20px;
height: 15px;
}
<div>
<p> Rounded List </p>
<p> Rounded List </p>
<p> Rounded List </p>
<p> Rounded List </p>
<p> Rounded List </p>
</div>
