Simple ellipse
- To create a circle simply add
border-radius
property
on the element.
Change on the X and Y axis
- We can specify diferent value for horizontal and vertical axis.
- on
border-radius
the first parameter will move the radius on
the X axis and the second parameter on the Y axis.
- The parameters are separate by
/
.
Modify each corners
- We can if we want modify each of the corners of an element.
- On
border-radius
property use 4 parameter to specify each corners.
- The first parameter is equal to
border-top-left
, the
second to border-top-right
, the third to border-bottom-right
and
the last to border-bottom-left
.
Modify each corners on differents axis
- We can combine the method above to create this kind of ellipse.
- On
border-radius
use the /
separator
to modify the X and Y axis.
- The parameters on the left will modify the corners that you indicate
on the X axis.
- The parameters on the right will modify the corners taht you indicate
on the Y axis.