Trusted answers to developer questions

How to create an ellipse in CSS

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

widget

Draw a simple rectangle. Your choice of height and width, of the rectangle, will dictate the size and shape of the ellipse.

The border-radius refers to the curvature at the corners of the ​shape; it should be set to a very high value (50% to 100%).

An ellipse has been created!

To draw a circle (a special case of ellipses) keep the height and width equal.

RELATED TAGS

ellipse
shapes
css
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?