Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: object-cover and object-contain

What is the difference between object-cover and object-contain for an image with fill?

Answer options

  • object-cover shows the whole photo, while object-contain crops the edges
  • object-cover fills the container and may crop the edges, object-contain shows the whole photo with empty bands
  • Both classes crop the photo, they differ only in the quality of the copy
  • object-cover works only with width and height, and object-contain only with fill

You can check the correct answer by solving this task in the CodeWorlds game.