HTML & CSS · Middle · Question 57 of 75

What does object-position: top do with object-fit: cover?

Explanation

object-fit decides how the image fills the box, object-position decides which part stays visible. The default is 50% 50%, the center.

Further reading

Problem with a question

HTML & CSS · Middle · question 57

Test yourself

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

Take this quiz