FrontendDeveloper.in

CSS question detail

What is `object-fit` for images/videos?

object-fit controls how replaced content fits inside a box.

Common values:

  • cover: fills box, may crop.
  • contain: fits entirely, may leave empty space.
Back to all CSS questions
Get LinkedIn Premium at Rs 399