How do I draw a semicircle with CSS when the height and width are percentages?
.container{
width: 200px;
height: 200px;
background: blue;
display: flex;
}
.semiCircle{
position:relative;
height: 90%;
width: 45%;
border-radius: 90% 0 0 90%;
background: red;
margin:auto;
}
<div class='container'>
<div class='semiCircle'></div>
</div>