2-9 of 336,000 results
Open links in new tab
  1. object-fit - CSS | MDN

    Nov 7, 2025 · The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container.

  2. object-fit | CSS-Tricks

    Feb 2, 2015 · Used by itself, object-fit lets us crop an inline image by giving us fine-grained control over how it squishes and stretches inside its box. object-fit can be set with one of these five …

  3. CSS Object-Fit Property: Complete Guide to Image and Video ...

    Jun 19, 2025 · Master CSS object-fit property to control how images and videos are sized within containers. Learn all values, practical examples, and responsive design techniques.

  4. CSS object-fit Property - GeeksforGeeks

    Jun 18, 2024 · The CSS object-fit property is used to control how an image or video is resized to fit its content box. This property offers various methods to fill the content box, such as …

  5. CSS object-fit Property

    Use the object-fit CSS property to define how an element fits in its container. See property values with examples.

  6. CSS object-fit Property - CSS Portal

    Jan 2, 2024 · Learn about the object-fit CSS Property. View description, syntax, values, examples and browser support for the object-fit CSS Property.

  7. How to Use the CSS object-fit Property

    Jan 31, 2024 · Learn how to use the CSS object-fit property to resize images in HTML without distortion. Discover the different values of object-fit and see examples of how it can be applied …

  8. CSS Object Fit: Syntax, Usage, and Examples

    CSS CSS Object Fit: Syntax, Usage, and Examples The CSS object-fit property controls how content like images or videos is resized and positioned within a container. It’s especially useful …