border-radius ellipses
When I started learning about CSS many years back, I learned that border-radius: 50%
turns a shape into an ellipse.
div {
width: 100px;
height: 100px;
background-color: hotpink;
border-radius: 50%;
}
I never questioned why. But as you might guess, 50%
is not some kind of "ellipse hack". It all makes sense.