---
title: "Discussion on \"object-fit property in CSS\" | Hashnode"
description: "Discussion on \"object-fit property in CSS\". **The object-fit CSS property sets how the content which includes images, videos and other embedded media formats should be resized to fit its container. **\nIn the 👇 image, the object fit property is applied to the lower row.\n\nLet's get the ball rol..."
url: "https://hashnode.com/posts/object-fit-property-in-css/61fad68243e34d1181697b51"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [object-fit property in CSS](https://rajatgupta.net/object-fit-property-in-css?utm_source=hashnode&utm_medium=feed)

\*\*The object-fit CSS property sets how the content which includes images, videos and other embedded media formats should be resized to fit its container. \*\* In the 👇 image, the object fit property is applied to the lower row. Let's get the ball rol...

Feb 2, 2022 · 2 min read · rajatgupta.net  
Updated Jun 17, 2023  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#images](https://hashnode.com/tag/images)

## Written by

[Rajat Gupta](https://hashnode.com/@therajatg)

@therajatg · Rajasthan, India

  
[View profile](https://hashnode.com/@therajatg)

I write about CSS, JavaScript, React and everything in between.

Hi, I am rajat. I write about react, javascript or css 4 times a week. One more thing: I would love to work as a frontend engineer (focused on ReactJS). If you have any such role, ping me at dguptarajat@gmail.com.

## Responses 1

Markdown supported · ⌘↵ to post

[Manjushree](https://hashnode.com/@Manjushree)

[Feb 9, 2022](https://hashnode.com/posts/object-fit-property-in-css/61fad68243e34d1181697b51/comment/62040bc09e350308247fbd8a)

Really blogs are awesome and appreciate your work on writing daily blogs👏👏👏

[Rajat Gupta](https://hashnode.com/@therajatg)

[Feb 9, 2022](https://hashnode.com/posts/object-fit-property-in-css/61fad68243e34d1181697b51/comment/62040bc09e350308247fbd8a#reply-62043ddab6c216065a35c372)

Thanks Manjushree!😃
