HTML & CSS · Junior · Question 69 of 75

How do you make a square avatar image a circle?

Explanation

50% of the width and height turns a square into a circle and a rectangle into an ellipse. object-fit: cover crops non-square photos instead of squashing them.

Further reading

Problem with a question

HTML & CSS · Junior · question 69

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz