Question: You have a set of images that are slightly different sizes and aspect ratios. You don't mind if you crop off some of the image, but you want each image to completely fill a square box without being distorted. Which property and value would achieve this?

  1. object-fit: contain
  2. object-fit: stretch
  3. object-fit: all
  4. object-fit: cover

Answer: The correct answer of the above question is Option D:object-fit: cover