Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


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,288 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?