I\'m trying to create a mix between an oval and a semi-circle.
Semi-circles can be created as such in CSS:
.halfCircle{
height:45px;
width
I've updated your demo with one possible solution:
div {
background-color: #80C5A0;
width: 400px;
height: 100px;
border-radius: 50% / 100%;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
By using percentage based units for the border-radius it should always keep a smooth semi-ellipse regardless of your width and height values.
With a few minor changes, here's how you'd render the semi-ellipse split in half vertically:
div {
background-color: #80C5A0;
width: 400px;
height: 100px;
border-radius: 100% / 50%;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}