Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Joe Consterdine
Joe Consterdine
13,965 Points

How to create perfect circle border-radius on image?

Hey guys,

please see the link below:


I need to re-create this image with the curves.

I expected border-radius was the best way to do it but I can't get the curves perfect.

How would you go about doing this?


Jesus Mendoza
Jesus Mendoza
23,274 Points
img {
  width: 300px;
  height: 300px;
  background: tomato;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-top-right-radius: 50%;

1 Answer

Joe Consterdine
Joe Consterdine
13,965 Points

Hi Jesus,

thanks! Didn't think of using '50%'.

I guess this only works if the image is saved out with no white space on the corners right?